Should fix Debian bug #192674: another gcc complaint about
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 10 May 2003 08:37:54 +0000 (08:37 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 10 May 2003 08:37:54 +0000 (08:37 +0000)
potentially uninitialised variable.

git-svn-id: svn://svn.tartarus.org/sgt/putty@3172 cda61777-01e9-0310-a592-d414129be87e

terminal.c

index 82a90de..5f6cdb1 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);