ID: 3528347 - 'lib/ipmi_raw.c' - possible int *flow

Commit fixes missing return in function is_valid_param() which slipped in code
review.
This commit is contained in:
Zdenek Styblik 2012-11-25 05:39:27 +00:00
parent 3018b229b1
commit cce3f84896

View File

@ -422,6 +422,7 @@ int
is_valid_param(const char *input_param, uint8_t *uchr_ptr, const char *label) { is_valid_param(const char *input_param, uint8_t *uchr_ptr, const char *label) {
if (input_param == NULL || label == NULL) { if (input_param == NULL || label == NULL) {
lprintf(LOG_ERROR, "ERROR: NULL pointer passed."); lprintf(LOG_ERROR, "ERROR: NULL pointer passed.");
return (-1);
} }
if (str2uchar(input_param, uchr_ptr) == 0) if (str2uchar(input_param, uchr_ptr) == 0)
return 0; return 0;