From bbede9a35425c76e4e74cae1a8044e404f83201e Mon Sep 17 00:00:00 2001 From: ian Date: Wed, 13 Sep 2000 22:17:58 +0000 Subject: [PATCH] + * Kill bogus warning, adh-main.c: `arg2' might be used uninitialized ... @@ -1,6 +1,8 @@ + * Kill bogus warning, adh-main.c: `arg2' might be used uninitialized ... + * #include and for fcntl in */*.c. --- changelog | 2 ++ client/adh-main.c | 2 +- client/adnsresfilter.c | 2 ++ regress/hcommon.c.m4 | 5 ++++- regress/hplayback.c.m4 | 5 ++++- regress/hrecord.c.m4 | 5 ++++- 6 files changed, 17 insertions(+), 4 deletions(-) diff --git a/changelog b/changelog index 2a2acda..dae0593 100644 --- a/changelog +++ b/changelog @@ -1,6 +1,8 @@ adns (0.10) unstable; urgency=low * Fix in client/adnsresfilter.c to . + * Kill bogus warning, adh-main.c: `arg2' might be used uninitialized ... + * #include and for fcntl in */*.c. -- diff --git a/client/adh-main.c b/client/adh-main.c index 1641294..094295e 100644 --- a/client/adh-main.c +++ b/client/adh-main.c @@ -125,7 +125,7 @@ static void process_optarg(const char *arg, } else if (oip->type == ot_funcarg2) { assert(argv_p); arg= *++(*argv_p); - if (arg) arg2= *++(*argv_p); + arg2= arg ? *++(*argv_p) : 0; if (!arg || !arg2) usageerr("option --%s requires two more arguments", oip->lopt); } else { diff --git a/client/adnsresfilter.c b/client/adnsresfilter.c index 316b0e2..db7a631 100644 --- a/client/adnsresfilter.c +++ b/client/adnsresfilter.c @@ -33,6 +33,8 @@ #include #include +#include +#include #include #include "adns.h" diff --git a/regress/hcommon.c.m4 b/regress/hcommon.c.m4 index fab7c82..2238cda 100644 --- a/regress/hcommon.c.m4 +++ b/regress/hcommon.c.m4 @@ -25,15 +25,18 @@ m4_dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. m4_include(hmacros.i4) -#include #include #include #include +#include #include #include #include +#include +#include + #include "harness.h" #include "internal.h" diff --git a/regress/hplayback.c.m4 b/regress/hplayback.c.m4 index bb36528..22e975a 100644 --- a/regress/hplayback.c.m4 +++ b/regress/hplayback.c.m4 @@ -27,14 +27,17 @@ m4_include(hmacros.i4) #include #include -#include #include #include +#include #include #include #include +#include +#include + #include "harness.h" static FILE *Tinputfile, *Treportfile; diff --git a/regress/hrecord.c.m4 b/regress/hrecord.c.m4 index 17f7034..58d3636 100644 --- a/regress/hrecord.c.m4 +++ b/regress/hrecord.c.m4 @@ -27,10 +27,13 @@ m4_include(hmacros.i4) #include #include -#include #include #include +#include +#include +#include + #include "harness.h" static FILE *Toutputfile; -- 2.30.2