summaryrefslogtreecommitdiff
path: root/popt.c
diff options
context:
space:
mode:
authordevzero2000 <devzero2000>2010-06-18 15:39:24 +0000
committerdevzero2000 <devzero2000>2010-06-18 15:39:24 +0000
commit73be8af7e8c2440f6cfe6a09627af260529966d8 (patch)
tree68517ee45fd39dcdc419c1ef96e3ea1878ef0a56 /popt.c
parentcd73b542163041d56d2b9bf5dacedc466651569a (diff)
downloadlibpopt-73be8af7e8c2440f6cfe6a09627af260529966d8.tar.gz
added an assert
Diffstat (limited to 'popt.c')
-rw-r--r--popt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/popt.c b/popt.c
index 0c38dae..13b8658 100644
--- a/popt.c
+++ b/popt.c
@@ -953,6 +953,7 @@ int poptSaveBits(poptBits * bitsp,
/* Parse comma separated attributes. */
te = tbuf = xstrdup(s);
+ assert(te);
while ((t = te) != NULL && *t) {
while (*te != '\0' && *te != ',')
te++;
@@ -1213,7 +1214,7 @@ int poptSaveShort(/*@null@*/ short * arg, unsigned int argInfo, long aLong)
/**
* Return argInfo field, handling POPT_ARGFLAG_TOGGLE overrides.
* @param con context
- * @param opt option
+ * @param *opt option
* @return argInfo
*/
static unsigned int poptArgInfo(poptContext con, const struct poptOption * opt)