mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +00:00
Should fix Debian bug #192674: another gcc complaint about
potentially uninitialised variable. [originally from svn r3172]
This commit is contained in:
parent
9a242f06ba
commit
beea582b35
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user