From 6e13b75186a3d859535d37e51fe0da927a3d9745 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 27 Mar 2008 05:32:27 +0000 Subject: notify: initialize variable to keep valgrind from bitching We don't really care what that variable is, so it might as well be uninitialized, but valgrind does... git-svn-id: https://svn.musicpd.org/mpd/trunk@7220 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/notify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notify.c b/src/notify.c index 86d5e1af1..6fdfb76f8 100644 --- a/src/notify.c +++ b/src/notify.c @@ -40,7 +40,7 @@ void waitNotify(Notify *notify) void signalNotify(Notify *notify) { - char buffer; + char buffer = 0; if (write(notify->fds[1], &buffer, sizeof(buffer)) < 0 && errno != EAGAIN && errno != EINTR) -- cgit v1.2.3