X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=src%2Fmisc-progs%2Fsetportfw.c;h=a65aebd2aab73f24c46e365b5d30cb26953178d6;hb=5e9b7dd2c3c0d242c06a48450fef81fcfb5fa29a;hp=ca79218fefe3c72d479c82084efddc898f2b3349;hpb=cd1a2927226c734d96478e12bb768256fb64a06a;p=ipfire-2.x.git diff --git a/src/misc-progs/setportfw.c b/src/misc-progs/setportfw.c index ca79218fef..a65aebd2aa 100644 --- a/src/misc-progs/setportfw.c +++ b/src/misc-progs/setportfw.c @@ -45,11 +45,11 @@ int main(void) { FILE *ipfile = NULL, *ifacefile = NULL; int count; - char iface[STRING_SIZE]; - char locip[STRING_SIZE]; - char greenip[STRING_SIZE], greenmask[STRING_SIZE]; - char bluedev[STRING_SIZE], blueip[STRING_SIZE], bluemask[STRING_SIZE]; - char orangedev[STRING_SIZE], orangeip[STRING_SIZE], orangemask[STRING_SIZE]; + char iface[STRING_SIZE] =""; + char locip[STRING_SIZE] =""; + char greenip[STRING_SIZE] ="", greenmask[STRING_SIZE] =""; + char bluedev[STRING_SIZE] ="", blueip[STRING_SIZE] ="", bluemask[STRING_SIZE] =""; + char orangedev[STRING_SIZE] ="", orangeip[STRING_SIZE] ="", orangemask[STRING_SIZE] =""; char *protocol; char *srcip; char *locport;