diff options
author | Bryce W. Harrington <b.harrington@samsung.com> | 2014-05-07 01:11:07 +0000 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2014-05-09 12:33:20 -0700 |
commit | 762b231e0b08cb0600ac018038c32eb1f327ad54 (patch) | |
tree | 92b8770ea4e3473625b4139e22a25b6e7169051a /clients/keyboard.c | |
parent | d8d4701864e8a0e5a1c97e12478d485e814d9941 (diff) |
clients: Initialize label in keyboard handling code
Quells warning:
clients/keyboard.c: In function ‘keyboard_handle_key.isra.5’:
clients/keyboard.c:556:11: warning: ‘label’ may be used uninitialized in
this function [-Wuninitialized]
Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
Diffstat (limited to 'clients/keyboard.c')
-rw-r--r-- | clients/keyboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/keyboard.c b/clients/keyboard.c index cd1ad586..7c11cec5 100644 --- a/clients/keyboard.c +++ b/clients/keyboard.c @@ -530,7 +530,7 @@ append(char *s1, const char *s2) static void keyboard_handle_key(struct keyboard *keyboard, uint32_t time, const struct key *key, struct input *input, enum wl_pointer_button_state state) { - const char *label; + const char *label = NULL; switch(keyboard->state) { case KEYBOARD_STATE_DEFAULT : |