diff options
Diffstat (limited to 'xkbcomp/parseutils.c')
-rw-r--r-- | xkbcomp/parseutils.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/xkbcomp/parseutils.c b/xkbcomp/parseutils.c index 4b2a3e605..ab50c5710 100644 --- a/xkbcomp/parseutils.c +++ b/xkbcomp/parseutils.c @@ -561,10 +561,8 @@ OverlayKeyCreate(char *under, char *over) key->common.stmtType = StmtOverlayKeyDef; strncpy(key->over, over, XkbKeyNameLength); strncpy(key->under, under, XkbKeyNameLength); - if (over) - uFree(over); - if (under) - uFree(under); + uFree(over); + uFree(under); } return key; } |