Commit 40bea8e9fa715c099173929149c134525383d3a2

Ran Benita 2019-12-27T14:52:49

xkbcomp: fix wrong return type Detected by MSVC: xkbcomp\xkbcomp.c(111): warning C4047: 'return': 'bool' differs in levels of indirection from 'void *' Signed-off-by: Ran Benita <ran@unusedvar.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/xkbcomp/xkbcomp.c b/src/xkbcomp/xkbcomp.c
index 5655041..48547c9 100644
--- a/src/xkbcomp/xkbcomp.c
+++ b/src/xkbcomp/xkbcomp.c
@@ -108,7 +108,7 @@ text_v1_keymap_new_from_string(struct xkb_keymap *keymap,
     xkb_file = XkbParseString(keymap->ctx, string, len, "(input string)", NULL);
     if (!xkb_file) {
         log_err(keymap->ctx, "Failed to parse input xkb string\n");
-        return NULL;
+        return false;
     }
 
     ok = compile_keymap_file(keymap, xkb_file);