diff options
author | Ran Benita <ran234@gmail.com> | 2013-03-13 13:55:11 +0200 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2013-03-18 22:20:06 +0000 |
commit | 0e200bd507eae13298604c129cc91aed2e947420 (patch) | |
tree | 114ae1b4627ab8833283fd56a87dc20c5e87ebf0 /src | |
parent | 559252a1a8dfd0d7da776709a31bea546abe344f (diff) |
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 <ran234@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/xkbcomp/rules.c | 1 |
1 files changed, 1 insertions, 0 deletions
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] != ']') |