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

Close #3927.
This commit is contained in:
antirez 2017-04-11 16:45:08 +02:00
parent 531647bb1b
commit aa5b4be02e

View File

@ -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