Fixed a possible uninitialized variable access.
authormarkus schnalke <markus.schnalke@la-bw.de>
Thu, 20 Nov 2014 09:57:46 +0000 (10:57 +0100)
committermarkus schnalke <markus.schnalke@la-bw.de>
Thu, 20 Nov 2014 09:57:46 +0000 (10:57 +0100)
(Thanks to the compiler for reporting.)

uip/whom.c

index 8ffe8b8..57fddc8 100644 (file)
@@ -173,7 +173,7 @@ static int
 process(char *file)
 {
         int state, compnum;
-       char *cp;
+       char *cp = NULL;
        char buf[BUFSIZ], name[NAMESZ];
        FILE *in;