From 1bb43dc07f91642d0d52fd7690def322e6107fc4 Mon Sep 17 00:00:00 2001 From: David Schweikert Date: Thu, 16 Aug 2012 11:24:02 +0200 Subject: [PATCH] fix wrong use of pointer (causing segfault) --- src/fping.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 ); -- 2.43.0