diff options
| author | Timotej Lazar <timotej.lazar@araneo.si> | 2020-04-22 02:43:23 +0200 |
|---|---|---|
| committer | Timotej Lazar <timotej.lazar@araneo.si> | 2020-04-23 18:52:43 +0200 |
| commit | b87daf8d02c29c87aab77409811bcb593c3981af (patch) | |
| tree | 8ab56cc787719c355aac323a0a4fa5453ea18ad6 | |
| parent | e5ce2cb250d4d217ca495344943665e16616c73e (diff) | |
Compare return value of strncmp to 0, not NULL
| -rw-r--r-- | src/win95/chunk.cpp | 2 |
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; |
