Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
f47607af
Commit
f47607af
authored
Apr 11, 2017
by
antirez
Browse files
Fix preprocessor if/else chain broken in order to fix #3927.
parent
74720ea9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/zmalloc.c
View file @
f47607af
...
@@ -418,6 +418,9 @@ size_t zmalloc_get_memory_size(void) {
...
@@ -418,6 +418,9 @@ size_t zmalloc_get_memory_size(void) {
if
(
sysctl
(
mib
,
2
,
&
size
,
&
len
,
NULL
,
0
)
==
0
)
if
(
sysctl
(
mib
,
2
,
&
size
,
&
len
,
NULL
,
0
)
==
0
)
return
(
size_t
)
size
;
return
(
size_t
)
size
;
return
0L
;
/* Failed? */
return
0L
;
/* Failed? */
#else
return
0L
;
/* Unknown method to get the data. */
#endif
#else
#else
return
0L
;
/* Unknown OS. */
return
0L
;
/* Unknown OS. */
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment