Skip to content

Commit f67a328

Browse files
fix: Parenthesize len macro argument for safety
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
1 parent bcd3e7b commit f67a328

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/tls_mgm/tls_mgm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
#include "api.h"
7070

7171
#define DB_CAP DB_CAP_QUERY | DB_CAP_UPDATE
72-
#define len(s) s == NULL?0:strlen(s)
72+
#define len(s) ((s) == NULL ? 0 : strlen(s))
7373

7474
#define check_val( _col, _val, _type, _not_null, _is_empty_str) \
7575
do{\

0 commit comments

Comments
 (0)