|
|
@ -533,9 +533,9 @@ cp_getvar(char *name, enum cp_types type, void *retval) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (v->va_type == type) { |
|
|
if (v->va_type == type) { |
|
|
|
|
|
if (retval) |
|
|
switch (type) { |
|
|
switch (type) { |
|
|
case CP_BOOL: |
|
|
case CP_BOOL: |
|
|
if (retval) |
|
|
|
|
|
* (bool *) retval = TRUE; |
|
|
* (bool *) retval = TRUE; |
|
|
break; |
|
|
break; |
|
|
case CP_NUM: { |
|
|
case CP_NUM: { |
|
|
|