From: David Schweikert Date: Thu, 16 Aug 2012 09:24:02 +0000 (+0200) Subject: fix wrong use of pointer (causing segfault) X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bb43dc07f91642d0d52fd7690def322e6107fc4;p=fping.git fix wrong use of pointer (causing segfault) --- diff --git a/src/fping.c b/src/fping.c index c39975f..73182ce 100644 --- a/src/fping.c +++ b/src/fping.c @@ -859,7 +859,6 @@ int main( int argc, char **argv ) FILE *ping_file; char line[132]; char host[132]; - char *p; if( strcmp( filename, "-" ) == 0 ) ping_file = fdopen( 0, "r" ); @@ -878,7 +877,7 @@ int main( int argc, char **argv ) if( ( !*host ) || ( host[0] == '#' ) ) /* magic to avoid comments */ continue; - add_name(p); + add_name(host); }/* WHILE */ fclose( ping_file );