variables, cp_getvar(), beware of retval == NULL
This commit is contained in:
parent
20b666e2d5
commit
97c5e1567f
|
|
@ -533,9 +533,9 @@ cp_getvar(char *name, enum cp_types type, void *retval)
|
|||
}
|
||||
|
||||
if (v->va_type == type) {
|
||||
if (retval)
|
||||
switch (type) {
|
||||
case CP_BOOL:
|
||||
if (retval)
|
||||
* (bool *) retval = TRUE;
|
||||
break;
|
||||
case CP_NUM: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue