diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2017-10-01 00:38:13 +0300 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2017-10-01 00:39:56 +0300 |
commit | ce6a6f86e9202b6542605255deb42567d84f4816 (patch) | |
tree | 9d8aaa13e188620899845c2d8ede0f1b7a05ab22 /src/fspec | |
parent | 316a006533874161642dcddcca18c12039dcd059 (diff) |
Diffstat (limited to 'src/fspec')
-rw-r--r-- | src/fspec/bcode.c | 2 |
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: |