Appease gcc. Init "terminator".
It is plainly obvious that the init value cannot be used (the var was never used uninit'd - could not be) but gcc apparently cannot work that out. Revert this if we ever get a compiler with a brain.
This commit is contained in:
parent
cfe16cc4b6
commit
a4e7b926c7
1
external/bsd/tmux/dist/tty-keys.c
vendored
1
external/bsd/tmux/dist/tty-keys.c
vendored
@ -931,6 +931,7 @@ tty_keys_clipboard(__unused struct tty *tty, const char *buf, size_t len,
|
||||
return (1);
|
||||
|
||||
/* Find the terminator if any. */
|
||||
terminator = 0; /* XXX: appease gcc (this value is never used) */
|
||||
for (end = 5; end < len; end++) {
|
||||
if (buf[end] == '\007') {
|
||||
terminator = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user