From aa5b4be02ecf280b68786986f3fe99a9abcf0446 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 11 Apr 2017 16:45:08 +0200 Subject: [PATCH] Fix zmalloc_get_memory_size() ifdefs to actually use the else branch. Close #3927. --- src/zmalloc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/zmalloc.c b/src/zmalloc.c index f71ce2c9..0d360779 100644 --- a/src/zmalloc.c +++ b/src/zmalloc.c @@ -418,8 +418,6 @@ size_t zmalloc_get_memory_size(void) { if (sysctl(mib, 2, &size, &len, NULL, 0) == 0) return (size_t)size; return 0L; /* Failed? */ -#endif /* sysctl and sysconf variants */ - #else return 0L; /* Unknown OS. */ #endif