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
b9eed483
Commit
b9eed483
authored
Mar 09, 2010
by
Pieter Noordhuis
Browse files
fix: use zmalloc instead of malloc
parent
c1d57a10
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
b9eed483
...
@@ -5491,7 +5491,7 @@ static void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) {
...
@@ -5491,7 +5491,7 @@ static void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) {
}
}
/* read keys to be used for input */
/* read keys to be used for input */
src
=
malloc
(
sizeof
(
zsetopsrc
)
*
zsetnum
);
src =
z
malloc(sizeof(zsetopsrc) * zsetnum);
for (i = 0, j = 3; i < zsetnum; i++, j++) {
for (i = 0, j = 3; i < zsetnum; i++, j++) {
robj *zsetobj = lookupKeyWrite(c->db,c->argv[j]);
robj *zsetobj = lookupKeyWrite(c->db,c->argv[j]);
if (!zsetobj) {
if (!zsetobj) {
...
...
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