Commit dd80fedf authored by antirez's avatar antirez
Browse files

Fix zmalloc_get_memory_size() ifdefs to actually use the else branch.

Close #3927.
parent 697d3abe
......@@ -413,8 +413,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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment