From 27572690da64af372b912c9387223d809d8dc258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Piotrowski?= <b@bpiotrowski.pl> Date: Mon, 15 Dec 2014 19:34:09 +0100 Subject: [PATCH] Initialize pidfilename with NULL The bug has been found by Coverity scan (CWE-457). --- fanout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fanout.c b/fanout.c index e5eb723..4230e1e 100644 --- a/fanout.c +++ b/fanout.c @@ -158,7 +158,7 @@ int main (int argc, char *argv[]) socklen_t optlen = sizeof(optval); u_int listen_backlog = 25; u_int max_events = 25; - char *pidfilename; + char *pidfilename = NULL; server_start_time = (long)time (NULL); char buffer[1025]; -- GitLab