summaryrefslogtreecommitdiff
path: root/src/win95/chunk.cpp
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.si>2020-04-22 02:43:23 +0200
committerTimotej Lazar <timotej.lazar@araneo.si>2020-04-23 18:52:43 +0200
commitb87daf8d02c29c87aab77409811bcb593c3981af (patch)
tree8ab56cc787719c355aac323a0a4fa5453ea18ad6 /src/win95/chunk.cpp
parente5ce2cb250d4d217ca495344943665e16616c73e (diff)
Compare return value of strncmp to 0, not NULL
Diffstat (limited to 'src/win95/chunk.cpp')
-rw-r--r--src/win95/chunk.cpp2
1 files changed, 1 insertions, 1 deletions
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;