From beed06fdd55bc1ac48ad62ce849dd18b2efd02eb Mon Sep 17 00:00:00 2001 From: Jim Klimov Date: Sat, 10 Aug 2024 00:31:55 +0000 Subject: [PATCH] include/str.h: use a more reliable definition of NUT_STRARG doing nothing [#2585] Signed-off-by: Jim Klimov --- include/str.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/str.h b/include/str.h index d7aac249f6..44cd3a667d 100644 --- a/include/str.h +++ b/include/str.h @@ -32,7 +32,7 @@ extern "C" { /* Some compilers and/or C libraries do not handle printf("%s", NULL) correctly */ #ifndef NUT_STRARG # if (defined REQUIRE_NUT_STRARG) && (REQUIRE_NUT_STRARG == 0) -# define NUT_STRARG(x) x +# define NUT_STRARG(x) (x) # else /* Is required, or not defined => err on safe side */ # define NUT_STRARG(x) (x?x:"(null)")