types: don't strdup a default name
authorRan Benita <ran234@gmail.com>
Fri, 31 Aug 2012 09:12:13 +0000 (12:12 +0300)
committerRan Benita <ran234@gmail.com>
Mon, 3 Sep 2012 07:25:20 +0000 (10:25 +0300)
None of the other files does that.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/xkbcomp/types.c

index 8475900..d5071d4 100644 (file)
@@ -216,7 +216,7 @@ static void
 InitKeyTypesInfo(KeyTypesInfo *info, struct xkb_keymap *keymap,
                  unsigned file_id)
 {
-    info->name = strdup("default");
+    info->name = NULL;
     info->errorCount = 0;
     darray_init(info->types);
     info->file_id = file_id;