aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-03-27 05:32:27 +0000
committerEric Wong <normalperson@yhbt.net>2008-03-27 05:32:27 +0000
commit6e13b75186a3d859535d37e51fe0da927a3d9745 (patch)
treea73f95a08d3c7470ebb082a4130c229d00d3d763 /src
parent53be85e1b1fabfad7222e3d4a2c9607347a0e3bd (diff)
downloadmpd-6e13b75186a3d859535d37e51fe0da927a3d9745.tar.gz
mpd-6e13b75186a3d859535d37e51fe0da927a3d9745.tar.xz
mpd-6e13b75186a3d859535d37e51fe0da927a3d9745.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/notify.c2
1 files changed, 1 insertions, 1 deletions
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)