]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
misc-progs: Fix some more uninitialized variables.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 26 Nov 2012 16:40:14 +0000 (17:40 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 26 Nov 2012 16:40:14 +0000 (17:40 +0100)
src/misc-progs/rebuildhosts.c

index 08408874481eb935992bcc22131235e6be695aa2..e831858819e18d98c5e11404953bad65580cf4b6 100644 (file)
@@ -41,11 +41,11 @@ void exithandler(void)
 int main(int argc, char *argv[])
 {
        int fdpid; 
-       char hostname[STRING_SIZE];
+       char hostname[STRING_SIZE] = "";
        char domainname[STRING_SIZE] = "";
        char gateway[STRING_SIZE] = "";
        char buffer[STRING_SIZE];
-       char address[STRING_SIZE];
+       char address[STRING_SIZE] = "";
        char *active, *ip, *host, *domain;
        int pid;