Browse code

ndb_redis: wrap if block in curly braces

- GH #3012

Daniel-Constantin Mierla authored on 08/02/2022 07:19:03
Showing 1 changed files
... ...
@@ -39,8 +39,10 @@
39 39
 
40 40
 #include "redis_client.h"
41 41
 
42
-#define redisCommandNR(a...) (int)({ void *__tmp; __tmp = redisCommand(a); \
43
-		if (__tmp) freeReplyObject(__tmp); __tmp ? 0 : -1;})
42
+#define redisCommandNR(a...) (int)({ \
43
+		void *__tmp; __tmp = redisCommand(a); \
44
+		if (__tmp) { freeReplyObject(__tmp); }; \
45
+		__tmp ? 0 : -1;})
44 46
 
45 47
 static redisc_server_t * _redisc_srv_list=NULL;
46 48