Code

main: eliminate another local dummy variable
authorMax Kellermann <max.kellermann@gmail.com>
Sun, 19 Mar 2017 09:56:40 +0000 (10:56 +0100)
committerMax Kellermann <max.kellermann@gmail.com>
Sun, 19 Mar 2017 09:56:40 +0000 (10:56 +0100)
src/main.c

index 6de16e54bed8078f7b6f37b17ecc230dfd922cd3..85548bec1ebaa6376f01f52dd228713bfc08abda 100644 (file)
@@ -98,8 +98,7 @@ catch_sigint(gcc_unused int sig)
 static void
 catch_sigcont(gcc_unused int sig)
 {
-       char irrelevant = 'a';
-       if (1 != write(sigwinch_pipes[1], &irrelevant, 1))
+       if (1 != write(sigwinch_pipes[1], "", 1))
                exit(EXIT_FAILURE);
 }