context: fix a compiler warning ../src/context.c:57:9: warning: variable 'err' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
diff --git a/src/context.c b/src/context.c
index 2abaa9b..4a6ac8e 100644
--- a/src/context.c
+++ b/src/context.c
@@ -50,7 +50,7 @@ XKB_EXPORT int
xkb_context_include_path_append(struct xkb_context *ctx, const char *path)
{
struct stat stat_buf;
- int err;
+ int err = ENOMEM;
char *tmp;
tmp = strdup(path);