NULL is a pointer, not string terminator
Replace some instances of NULL to '\0', when referring to string terminator.
This commit is contained in:
committed by
Jon Trulson
parent
3b06b6a6b7
commit
706fccb50e
@@ -997,7 +997,7 @@ csa_list_entry_sequence(
|
||||
rtype = &entry->e->attrs[CSA_ENTRY_ATTR_RECURRENCE_RULE_I];
|
||||
if (rtype->value == NULL ||
|
||||
rtype->value->item.string_value == NULL ||
|
||||
*(rtype->value->item.string_value) == NULL) {
|
||||
*(rtype->value->item.string_value) == '\0' ) {
|
||||
return (CSA_E_INVALID_PARAMETER);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user