projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use macros from cast.h instead of literal casts
[pspp]
/
src
/
libpspp
/
argv-parser.c
diff --git
a/src/libpspp/argv-parser.c
b/src/libpspp/argv-parser.c
index b3dc46134a81653a9698269a7da8b0ceec033058..ecf1ab23c74264ba4331ba413e5b14edd4836125 100644
(file)
--- a/
src/libpspp/argv-parser.c
+++ b/
src/libpspp/argv-parser.c
@@
-78,6
+78,7
@@
argv_parser_add_options (struct argv_parser *ap,
ap->options = x2nrealloc (ap->options, &ap->allocated_options,
sizeof *ap->options);
ap->options = x2nrealloc (ap->options, &ap->allocated_options,
sizeof *ap->options);
+ assert (src->long_name != NULL || src->short_name != 0);
dst = &ap->options[ap->n_options++];
dst->base = *src;
dst->cb = cb;
dst = &ap->options[ap->n_options++];
dst->base = *src;
dst->cb = cb;