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
9dabbd1a
Commit
9dabbd1a
authored
Mar 21, 2019
by
antirez
Browse files
Alter coding style in #4696 to conform to Redis code base.
parent
5c47e2e9
Changes
1
Show whitespace changes
Inline
Side-by-side
src/zmalloc.c
View file @
9dabbd1a
...
@@ -148,7 +148,7 @@ void *zrealloc(void *ptr, size_t size) {
...
@@ -148,7 +148,7 @@ void *zrealloc(void *ptr, size_t size) {
size_t
oldsize
;
size_t
oldsize
;
void
*
newptr
;
void
*
newptr
;
if
(
size
==
0
&&
ptr
!=
NULL
)
{
if
(
size
==
0
&&
ptr
!=
NULL
)
{
zfree
(
ptr
);
zfree
(
ptr
);
return
NULL
;
return
NULL
;
}
}
...
...
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