diff options
author | devzero2000 <devzero2000> | 2010-06-18 15:39:24 +0000 |
---|---|---|
committer | devzero2000 <devzero2000> | 2010-06-18 15:39:24 +0000 |
commit | 73be8af7e8c2440f6cfe6a09627af260529966d8 (patch) | |
tree | 68517ee45fd39dcdc419c1ef96e3ea1878ef0a56 | |
parent | cd73b542163041d56d2b9bf5dacedc466651569a (diff) | |
download | libpopt-73be8af7e8c2440f6cfe6a09627af260529966d8.tar.gz |
added an assert
-rw-r--r-- | popt.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |