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>
This commit is contained in:
Bryce W. Harrington 2014-05-07 01:11:07 +00:00 committed by Kristian Høgsberg
parent d8d4701864
commit 762b231e0b
1 changed files with 1 additions and 1 deletions

View File

@ -530,7 +530,7 @@ append(char *s1, const char *s2)
static void static void
keyboard_handle_key(struct keyboard *keyboard, uint32_t time, const struct key *key, struct input *input, enum wl_pointer_button_state state) 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) { switch(keyboard->state) {
case KEYBOARD_STATE_DEFAULT : case KEYBOARD_STATE_DEFAULT :