From: Max Kellermann Date: Fri, 17 Mar 2017 14:47:52 +0000 (+0100) Subject: main: eliminate local dummy variable X-Git-Tag: v0.26~69 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a818c0d3d1b0ccd40ed83b13c6c105db9312a856;p=ncmpc.git main: eliminate local dummy variable --- diff --git a/src/main.c b/src/main.c index 7e5a6cb..8bc4d59 100644 --- a/src/main.c +++ b/src/main.c @@ -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 */