diff options
Diffstat (limited to 'shared/utils.c')
-rw-r--r-- | shared/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shared/utils.c b/shared/utils.c index 1284a73..c71f1f7 100644 --- a/shared/utils.c +++ b/shared/utils.c @@ -142,7 +142,8 @@ strtou16_strict(const char *str, uint16_t *result) char *end; long val; - //assert_return(!empty_str(str) && result, -EINVAL); + if (empty_str(str)) + return -EINVAL; errno = 0; val = strtol(str, &end, 10); |