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
This commit is contained in:
@@ -40,7 +40,7 @@ void waitNotify(Notify *notify)
|
|||||||
|
|
||||||
void signalNotify(Notify *notify)
|
void signalNotify(Notify *notify)
|
||||||
{
|
{
|
||||||
char buffer;
|
char buffer = 0;
|
||||||
|
|
||||||
if (write(notify->fds[1], &buffer, sizeof(buffer)) < 0 &&
|
if (write(notify->fds[1], &buffer, sizeof(buffer)) < 0 &&
|
||||||
errno != EAGAIN && errno != EINTR)
|
errno != EAGAIN && errno != EINTR)
|
||||||
|
Reference in New Issue
Block a user