diff options
author | Salvatore Sanfilippo <antirez@gmail.com> | 2018-01-24 10:48:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-24 10:48:04 +0100 |
commit | 4bffeda8b03e8e432025524c0e49ed3f5b7b9653 (patch) | |
tree | a54a86cabffa63291233a86d850f3c24ef9379e7 | |
parent | 5f5be1ee330903ce1582386623fe4f9bc28a7801 (diff) | |
parent | 062bd733da883d76d3625fb38c71f2bd74c363a1 (diff) | |
download | redis-4bffeda8b03e8e432025524c0e49ed3f5b7b9653.tar.gz |
Merge pull request #4628 from mnunberg/patch-1
redismodule.h: Check ModuleNameBusy before calling it
-rw-r--r-- | src/redismodule.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/redismodule.h b/src/redismodule.h index 374cde7f0..09d681c27 100644 --- a/src/redismodule.h +++ b/src/redismodule.h @@ -374,7 +374,7 @@ static int RedisModule_Init(RedisModuleCtx *ctx, const char *name, int ver, int REDISMODULE_GET_API(AbortBlock); #endif - if (RedisModule_IsModuleNameBusy(name)) return REDISMODULE_ERR; + if (RedisModule_IsModuleNameBusy && RedisModule_IsModuleNameBusy(name)) return REDISMODULE_ERR; RedisModule_SetModuleAttribs(ctx,name,ver,apiver); return REDISMODULE_OK; } |