Commit 1736e7daad18a438ce3c47b56d5d985636296276

Ran Benita 2012-08-31T12:12:13

types: don't strdup a default name None of the other files does that. Signed-off-by: Ran Benita <ran234@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/xkbcomp/types.c b/src/xkbcomp/types.c
index 8475900..d5071d4 100644
--- a/src/xkbcomp/types.c
+++ b/src/xkbcomp/types.c
@@ -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;