From 5342c0969465885ee9c9a68022b0360abe2216e5 Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 10 May 2003 08:37:54 +0000 Subject: [PATCH] Should fix Debian bug #192674: another gcc complaint about potentially uninitialised variable. git-svn-id: svn://svn.tartarus.org/sgt/putty@3172 cda61777-01e9-0310-a592-d414129be87e --- terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminal.c b/terminal.c index 82a90deb..5f6cdb19 100644 --- a/terminal.c +++ b/terminal.c @@ -4577,7 +4577,7 @@ void term_key(Terminal *term, Key_Sym keysym, wchar_t *text, size_t tlen, case PK_RIGHT: xkey = 'C'; break; case PK_LEFT: xkey = 'D'; break; case PK_REST: xkey = 'G'; break; /* centre key on number pad */ - default: break; /* else gcc warns `enum value not used' */ + default: xkey = 0; break; /* else gcc warns `enum value not used' */ } if (term->vt52_mode) p += sprintf((char *) p, "\x1B%c", xkey); -- 2.11.0