Skip to content

Commit

Permalink
include/str.h: use a more reliable definition of NUT_STRARG doing not…
Browse files Browse the repository at this point in the history
…hing [networkupstools#2585]

Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Aug 10, 2024
1 parent cd2eb87 commit beed06f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/str.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)")
Expand Down

0 comments on commit beed06f

Please sign in to comment.