diff options
author | Ran Benita <ran234@gmail.com> | 2014-10-18 19:22:56 +0300 |
---|---|---|
committer | Ran Benita <ran234@gmail.com> | 2014-10-18 19:22:56 +0300 |
commit | 96a29ede77b0ea622ee268841dc7e41a6634519f (patch) | |
tree | 98908e933d32f796e4eec54a067600f0947fb800 /src/xkbcomp/keymap.c | |
parent | c43c3c866eb9d52cd8f61e75cbef1c30d07f3a28 (diff) | |
download | libxkbcommon-96a29ede77b0ea622ee268841dc7e41a6634519f.tar.gz libxkbcommon-96a29ede77b0ea622ee268841dc7e41a6634519f.tar.bz2 libxkbcommon-96a29ede77b0ea622ee268841dc7e41a6634519f.zip |
xkbcomp/keymap: remove useless free()
Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/xkbcomp/keymap.c')
-rw-r--r-- | src/xkbcomp/keymap.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/xkbcomp/keymap.c b/src/xkbcomp/keymap.c index 8b4693c..a7f70cf 100644 --- a/src/xkbcomp/keymap.c +++ b/src/xkbcomp/keymap.c @@ -257,10 +257,8 @@ CompileKeymap(XkbFile *file, struct xkb_keymap *keymap, enum merge_mode merge) continue; } - if (!file->topName) { - free(file->topName); + if (!file->topName) file->topName = strdup(main_name); - } files[file->file_type] = file; } |