Commit 6e13b751 authored by Eric Wong's avatar Eric Wong

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
parent 53be85e1
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment