From 12ab6f3ab46d08bd5fd190ff562a0bb200c8c16a Mon Sep 17 00:00:00 2001 From: Ken Steele Date: Wed, 11 Dec 2013 09:48:50 -0500 Subject: [PATCH] Fix uninitialized variable warning. These two lines reported warnings with -Werror -O3 on Tile. --- src/conf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conf.c b/src/conf.c index 9f70d81161..104f92ad06 100644 --- a/src/conf.c +++ b/src/conf.c @@ -1109,7 +1109,7 @@ ConfNodeLookupChildValueTest(void) static int ConfGetChildValueWithDefaultTest(void) { - char *val; + char *val = ""; int ret = 1; ConfCreateContextBackup(); ConfInit(); @@ -1139,7 +1139,7 @@ static int ConfGetChildValueWithDefaultTest(void) static int ConfGetChildValueIntWithDefaultTest(void) { - intmax_t val; + intmax_t val = 0; ConfCreateContextBackup(); ConfInit(); ConfSet("af-packet.0.interface", "eth0");