Compare return value of strncmp to 0, not NULL
This commit is contained in:
parent
e5ce2cb250
commit
b87daf8d02
1 changed files with 1 additions and 1 deletions
|
@ -437,7 +437,7 @@ Chunk* Chunk_With_Children::lookup_single_child (const char * class_ident) const
|
|||
|
||||
if (children)
|
||||
while (child_ptr != NULL) {
|
||||
if (strncmp (class_ident, child_ptr->identifier, 8) == NULL)
|
||||
if (strncmp (class_ident, child_ptr->identifier, 8) == 0)
|
||||
{
|
||||
assert (!child_ptr->r_u_miscellaneous());
|
||||
return child_ptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue