Commit 2fefe558ab168b62447747195afa9a8da201a5c6

Ran Benita 2020-07-25T16:34:11

tools: fix strcmp mistake in 0066e38 Signed-off-by: Ran Benita <ran@unusedvar.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tools/compile-keymap.c b/tools/compile-keymap.c
index 6308449..addbb2a 100644
--- a/tools/compile-keymap.c
+++ b/tools/compile-keymap.c
@@ -351,7 +351,7 @@ main(int argc, char **argv)
 
     for (size_t i = 0; i < num_includes; i++) {
         const char *include = includes[i];
-        if (strcmp(include, DEFAULT_INCLUDE_PATH_PLACEHOLDER))
+        if (strcmp(include, DEFAULT_INCLUDE_PATH_PLACEHOLDER) == 0)
             xkb_context_include_path_append_default(ctx);
         else
             xkb_context_include_path_append(ctx, include);