From 0e200bd507eae13298604c129cc91aed2e947420 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Wed, 13 Mar 2013 13:55:11 +0200 Subject: rules: quiet a gcc warning src/xkbcomp/rules.c:620:36: error: 'idx' may be used uninitialized in this function [-Werror=maybe-uninitialized] Can't happen but no harm done. Signed-off-by: Ran Benita --- src/xkbcomp/rules.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/xkbcomp/rules.c b/src/xkbcomp/rules.c index 1653f42..348ecc9 100644 --- a/src/xkbcomp/rules.c +++ b/src/xkbcomp/rules.c @@ -555,6 +555,7 @@ static int extract_layout_index(const char *s, size_t max_len, xkb_layout_index_t *out) { /* This function is pretty stupid, but works for now. */ + *out = XKB_LAYOUT_INVALID; if (max_len < 3) return -1; if (s[0] != '[' || !isdigit(s[1]) || s[2] != ']') -- cgit v1.2.3