Skip to content

Commit

Permalink
ndb_redis: wrap if block in curly braces
Browse files Browse the repository at this point in the history
- GH #3012
  • Loading branch information
miconda committed Feb 8, 2022
1 parent 37580a2 commit 08b29fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/modules/ndb_redis/redis_client.c
Expand Up @@ -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;

Expand Down

0 comments on commit 08b29fe

Please sign in to comment.