xkbcomp: return NULL, not false in place of a FILE*
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 10 Jul 2020 05:13:38 +0000 (15:13 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 13 Jul 2020 08:41:00 +0000 (18:41 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/xkbcomp/include.c

index 556b438..cf90384 100644 (file)
@@ -267,7 +267,7 @@ ProcessIncludeFile(struct xkb_context *ctx, IncludeStmt *stmt,
 
     file = FindFileInXkbPath(ctx, stmt->file, file_type, NULL);
     if (!file)
-        return false;
+        return NULL;
 
     xkb_file = XkbParseFile(ctx, file, stmt->file, stmt->map);
     fclose(file);