]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
master: Don't send uninitialized byte to anvil along the log fd.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 13 Sep 2017 13:09:05 +0000 (16:09 +0300)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Wed, 13 Sep 2017 16:22:46 +0000 (19:22 +0300)
The byte was ignored by anvil, so it didn't cause any real problems.

src/master/service-anvil.c

index 8acdbff6d920944217d36f34c6dd6d459267f61e..7b625eace05fe7b15b81674559ca3569e2efc919 100644 (file)
@@ -131,7 +131,7 @@ void service_anvil_process_destroyed(struct service_process *process)
 void service_anvil_send_log_fd(void)
 {
        ssize_t ret;
-       char b;
+       char b = 0;
 
        if (service_anvil_global->process_count == 0)
                return;