diff --git a/configure.ac b/configure.ac index fa7ef05..8a0585a 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ dnl Process this file with autoconf to produce a configure script. dnl Minimum Autoconf version required. AC_PREREQ(2.59) -AC_INIT([fping],[4.0]) +AC_INIT([fping],[4.1]) dnl --disable-ipv4 AC_ARG_ENABLE([ipv4], diff --git a/src/fping.c b/src/fping.c index 8b9ce25..35edca4 100644 --- a/src/fping.c +++ b/src/fping.c @@ -354,6 +354,7 @@ int main(int argc, char** argv) /* pre-parse -h/--help, so that we also can output help information * without trying to open the socket, which might fail */ + prog = argv[0]; if(argc == 2 && ( strcmp(argv[1],"-h")==0 || strcmp(argv[1],"--help")==0 )) { usage(0); } @@ -369,7 +370,6 @@ int main(int argc, char** argv) perror("cannot setuid"); } - prog = argv[0]; optparse_init(&optparse_state, argv); ident = getpid() & 0xFFFF; verbose_flag = 1;