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:
kre 2019-11-13 00:19:46 +00:00
parent cfe16cc4b6
commit a4e7b926c7

View File

@ -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;