From 40e2ca168a16f89bd2a64e6ecdfbba5e0496403a Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Wed, 3 Dec 2014 08:29:02 +0900 Subject: [PATCH] terminology - let's stop spewing out a warning all the time in keyin.c --- src/bin/keyin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/keyin.c b/src/bin/keyin.c index 60bbc4e8..d33f1429 100644 --- a/src/bin/keyin.c +++ b/src/bin/keyin.c @@ -64,7 +64,7 @@ _key_try(Termpty *ty, const Tty_Key *map, int len, const Evas_Event_Key_Down *ev { if ((inlen == map[i].key_len) && (!memcmp(ev->key, map[i].key, inlen))) { - const struct _s *s; + const struct _s *s = NULL; const Key_Values *kv; if (!ty->state.appcursor) kv = &map[i].default_mode; @@ -78,7 +78,7 @@ _key_try(Termpty *ty, const Tty_Key *map, int len, const Evas_Event_Key_Down *ev else if (!alt && ctrl && shift) s = &kv->shift_ctrl; else if (alt && ctrl && shift) s = &kv->shift_ctrl_alt; - termpty_write(ty, s->s, s->len); + if (s) termpty_write(ty, s->s, s->len); return EINA_TRUE; } }