diff options
author | Adam Chlipala <adamc@csail.mit.edu> | 2016-06-10 11:25:53 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@csail.mit.edu> | 2016-06-10 11:25:53 -0400 |
commit | 4a95c63b1f9778215c515b8c4f66d0c7672c214f (patch) | |
tree | e570f89c0889bcfbc0c3d1853a420c11e40b132a /src | |
parent | e5d78bf83c548597612f319eb9cef5a4cbacd53b (diff) |
Elaborate C expression to appease recent compilers
Diffstat (limited to 'src')
-rw-r--r-- | src/c/memmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c/memmem.c b/src/c/memmem.c index 68526714..891b2117 100644 --- a/src/c/memmem.c +++ b/src/c/memmem.c @@ -70,7 +70,7 @@ memmem(const void *b1, size_t len1, const void *b2, size_t len2) char *eos = sp + len1 - len2; /* Sanity check */ - if(!(b1 && b2 && len1 && len2)) + if(!(b1 != NULL && b2 != NULL && len1 != 0 && len2 != 0)) return NULL; while (sp <= eos) { |