Module: kamailio
Branch: master
Commit: 08b29fe56357d669ed888c5b94cbfe7bbde5bbef
URL:
https://github.com/kamailio/kamailio/commit/08b29fe56357d669ed888c5b94cbfe7…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-02-08T08:19:03+01:00
ndb_redis: wrap if block in curly braces
- GH #3012
---
Modified: src/modules/ndb_redis/redis_client.c
---
Diff:
https://github.com/kamailio/kamailio/commit/08b29fe56357d669ed888c5b94cbfe7…
Patch:
https://github.com/kamailio/kamailio/commit/08b29fe56357d669ed888c5b94cbfe7…
---
diff --git a/src/modules/ndb_redis/redis_client.c b/src/modules/ndb_redis/redis_client.c
index bb6adc20b1..aad0b6c1b6 100644
--- a/src/modules/ndb_redis/redis_client.c
+++ b/src/modules/ndb_redis/redis_client.c
@@ -39,8 +39,10 @@
#include "redis_client.h"
-#define redisCommandNR(a...) (int)({ void *__tmp; __tmp = redisCommand(a); \
- if (__tmp) freeReplyObject(__tmp); __tmp ? 0 : -1;})
+#define redisCommandNR(a...) (int)({ \
+ void *__tmp; __tmp = redisCommand(a); \
+ if (__tmp) { freeReplyObject(__tmp); }; \
+ __tmp ? 0 : -1;})
static redisc_server_t * _redisc_srv_list=NULL;