summaryrefslogtreecommitdiff
path: root/src/fspec
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2017-10-01 00:38:13 +0300
committerJari Vetoniemi <mailroxas@gmail.com>2017-10-01 00:39:56 +0300
commitce6a6f86e9202b6542605255deb42567d84f4816 (patch)
tree9d8aaa13e188620899845c2d8ede0f1b7a05ab22 /src/fspec
parent316a006533874161642dcddcca18c12039dcd059 (diff)
Add assert to tell compiler wrong behaviour is UDHEADmaster
Diffstat (limited to 'src/fspec')
-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: