Skip to content

Commit b82d825

Browse files
authored
Add error handling for invalid arguments in oapve_param_parse (#63)
Signed-off-by: Dawid Kozinski <d.kozinski@samsung.com>
1 parent cb6b54f commit b82d825

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/oapv_param.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,10 @@ int oapve_param_parse(oapve_param_t *param, const char *name, const char *value
335335
param->full_range_flag = ti0;
336336
param->color_description_present_flag = 1;
337337
}
338+
else {
339+
return OAPV_ERR_INVALID_ARGUMENT;
340+
}
341+
338342
return OAPV_OK;
339343
}
340344

0 commit comments

Comments
 (0)