diff options
author | jbj <jbj> | 2013-06-24 21:14:37 +0000 |
---|---|---|
committer | jbj <jbj> | 2013-06-24 21:14:37 +0000 |
commit | 59e3c5595ba86d0ecb7cd83f856c625dee69c9fe (patch) | |
tree | 5243dd852916144187bc74de5d8960b69f3070fa /poptconfig.c | |
parent | bfeda713618bd5a72a1f05bfe882784724416d3e (diff) | |
download | libpopt-59e3c5595ba86d0ecb7cd83f856c625dee69c9fe.tar.gz |
- fix: handle newly added asset(...) call like elsewhere.
Diffstat (limited to 'poptconfig.c')
-rw-r--r-- | poptconfig.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/poptconfig.c b/poptconfig.c index 0a9a50d..fad03c5 100644 --- a/poptconfig.c +++ b/poptconfig.c @@ -74,6 +74,12 @@ glob_pattern_p (const char * pattern, int quote) } #endif /* !defined(__GLIBC__) */ +#if defined(HAVE_ASSERT_H) +#include <assert.h> +#else +#define assert(_x) +#endif + /*@unchecked@*/ static int poptGlobFlags = 0; @@ -332,7 +338,7 @@ static int poptConfigLine(poptContext con, char * line) longName++; else longName = fn; - if (longName == NULL) /* XXX can't happen. */ +assert(longName != NULL); /* XXX can't happen. */ goto exit; /* Single character basenames are treated as short options. */ if (longName[1] != '\0') |