]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Should fix Debian bug #192674: another gcc complaint about
authorSimon Tatham <anakin@pobox.com>
Sat, 10 May 2003 08:37:54 +0000 (08:37 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 10 May 2003 08:37:54 +0000 (08:37 +0000)
potentially uninitialised variable.

[originally from svn r3172]

terminal.c

index 82a90deb7b34d855edec4b3e2c5d6cf921c3cc45..5f6cdb199bf4f39aa798c61088162acce08ddcd3 100644 (file)
@@ -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);