Code

main: eliminate local dummy variable
authorMax Kellermann <max.kellermann@gmail.com>
Fri, 17 Mar 2017 14:47:52 +0000 (15:47 +0100)
committerMax Kellermann <max.kellermann@gmail.com>
Fri, 17 Mar 2017 14:47:52 +0000 (15:47 +0100)
src/main.c

index 7e5a6cb3000c35605b62eb4728da2898bfe36889..8bc4d597a7b83175e8d40a8fb404b8f06ed36f44 100644 (file)
@@ -153,8 +153,7 @@ sigwinch_event(gcc_unused GIOChannel *source,
 static void
 catch_sigwinch(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);
 }
 #endif /* WIN32 */