From b87daf8d02c29c87aab77409811bcb593c3981af Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Wed, 22 Apr 2020 02:43:23 +0200 Subject: [PATCH] Compare return value of strncmp to 0, not NULL --- src/win95/chunk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win95/chunk.cpp b/src/win95/chunk.cpp index cab7ff3..b2914c4 100644 --- a/src/win95/chunk.cpp +++ b/src/win95/chunk.cpp @@ -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;