Skip to content

Commit

Permalink
Stringinfy the call parameter to message_entsrc
Browse files Browse the repository at this point in the history
Need to make sure we quote the funciton call to avoid errors

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
  • Loading branch information
nhorman committed Aug 4, 2021
1 parent d9a1e7e commit ab35764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rngd_nistbeacon.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ static int get_json_byte_array(json_t *parent, char *key, char **val, uint32_t *
#define CURL_ABRT_IF_FAIL(call, args...) do {\
int ____rc = call(args);\
if(____rc == -1) {\
message_entsrc(ent_src, LOG_DAEMON|LOG_ERR, "Out of memory in %s\n", call);\
message_entsrc(ent_src, LOG_DAEMON|LOG_ERR, "Out of memory in %s\n", #call);\
return 0;\
}} while(0)

Expand Down

0 comments on commit ab35764

Please sign in to comment.