diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/filters/memwrexe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/filters/memwrexe.c b/test/filters/memwrexe.c index 797e7881d..e68176b42 100644 --- a/test/filters/memwrexe.c +++ b/test/filters/memwrexe.c | |||
@@ -65,7 +65,7 @@ int main(int argc, char **argv) { | |||
65 | } | 65 | } |
66 | 66 | ||
67 | void *p = mmap (0, size, PROT_READ, MAP_SHARED, fd, 0); | 67 | void *p = mmap (0, size, PROT_READ, MAP_SHARED, fd, 0); |
68 | if (!p) { | 68 | if (p == MAP_FAILED) { |
69 | fprintf(stderr, "TESTING ERROR: cannot map file for mprotect test\n"); | 69 | fprintf(stderr, "TESTING ERROR: cannot map file for mprotect test\n"); |
70 | return 1; | 70 | return 1; |
71 | } | 71 | } |