summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fspec/bcode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fspec/bcode.c b/src/fspec/bcode.c
index 0a89260..0d0d3fd 100644
--- a/src/fspec/bcode.c
+++ b/src/fspec/bcode.c
@@ -97,7 +97,7 @@ fspec_arg_get_mem(const enum fspec_arg *arg, const void *data, struct fspec_mem
fspec_num
fspec_arg_get_num(const enum fspec_arg *arg)
{
- assert(arg);
+ assert(arg && *arg < FSPEC_ARG_LAST);
fspec_num v;
switch (*arg) {
case FSPEC_ARG_NUM: