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
8a355d69
Commit
8a355d69
authored
Jun 04, 2009
by
hrothgar
Browse files
remove die() :-)
parent
01fe7151
Changes
1
Show whitespace changes
Inline
Side-by-side
redis.c
View file @
8a355d69
...
@@ -171,11 +171,6 @@
...
@@ -171,11 +171,6 @@
/* Anti-warning macro... */
/* Anti-warning macro... */
#define REDIS_NOTUSED(V) ((void) V)
#define REDIS_NOTUSED(V) ((void) V)
int die() {
char *err = NULL;
sprintf(err, "gonner");
return 0;
}
/*================================= Data types ============================== */
/*================================= Data types ============================== */
...
@@ -1604,8 +1599,7 @@ static robj *createListObject(void) {
...
@@ -1604,8 +1599,7 @@ static robj *createListObject(void) {
static robj *createSetObject(void) {
static robj *createSetObject(void) {
dict *d = dictCreate(&setDictType,NULL);
dict *d = dictCreate(&setDictType,NULL);
if (!d) oom("dictCreate");
if (!d) oom("dictCreate");
die();
return createObject(REDIS_SET,d);
return createObject(REDIS_SET,d);
}
}
static void freeStringObject(robj *o) {
static void freeStringObject(robj *o) {
...
...
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