mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
remove die() :-)
This commit is contained in:
parent
01fe7151a9
commit
8a355d697a
8
redis.c
8
redis.c
@ -171,11 +171,6 @@
|
||||
|
||||
/* Anti-warning macro... */
|
||||
#define REDIS_NOTUSED(V) ((void) V)
|
||||
int die() {
|
||||
char *err = NULL;
|
||||
sprintf(err, "gonner");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/*================================= Data types ============================== */
|
||||
@ -1604,8 +1599,7 @@ static robj *createListObject(void) {
|
||||
static robj *createSetObject(void) {
|
||||
dict *d = dictCreate(&setDictType,NULL);
|
||||
if (!d) oom("dictCreate");
|
||||
die();
|
||||
return createObject(REDIS_SET,d);
|
||||
return createObject(REDIS_SET,d);
|
||||
}
|
||||
|
||||
static void freeStringObject(robj *o) {
|
||||
|
Loading…
Reference in New Issue
Block a user