[sr-dev] git:master:08b29fe5: ndb_redis: wrap if block in curly braces

Daniel-Constantin Mierla miconda at gmail.com
Tue Feb 8 08:19:53 CET 2022


Module: kamailio
Branch: master
Commit: 08b29fe56357d669ed888c5b94cbfe7bbde5bbef
URL: https://github.com/kamailio/kamailio/commit/08b29fe56357d669ed888c5b94cbfe7bbde5bbef

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/08b29fe56357d669ed888c5b94cbfe7bbde5bbef.diff
Patch: https://github.com/kamailio/kamailio/commit/08b29fe56357d669ed888c5b94cbfe7bbde5bbef.patch

---

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;
 




More information about the sr-dev mailing list