40 lines
991 B
Diff
40 lines
991 B
Diff
From ffa18b1e6a649164788b7c21720293c16d374e92 Mon Sep 17 00:00:00 2001
|
|
From: jbj <jbj>
|
|
Date: Mon, 24 Jun 2013 21:14:37 +0000
|
|
Subject: [PATCH 123/157] - fix: handle newly added asset(...) call like
|
|
elsewhere.
|
|
|
|
---
|
|
poptconfig.c | 8 +++++++-
|
|
1 file changed, 7 insertions(+), 1 deletion(-)
|
|
|
|
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')
|
|
--
|
|
2.19.1
|
|
|