--- lib/util/stringutils.c | 2 +- lib/util/stringutils.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/util/stringutils.c b/lib/util/stringutils.c index e991a13..d686b56 100644 --- a/lib/util/stringutils.c +++ b/lib/util/stringutils.c @@ -321,7 +321,7 @@ char *scrub_for_print( { fmt = "\\x%02" PRIx8; } - else if (strchr(other_chars_to_escape, src[i])) + else if (other_chars_to_escape && strchr(other_chars_to_escape, src[i])) { fmt = "\\%c"; } diff --git a/lib/util/stringutils.h b/lib/util/stringutils.h index c059c77..5dbf4ff 100644 --- a/lib/util/stringutils.h +++ b/lib/util/stringutils.h @@ -157,7 +157,7 @@ int expand_by_doubling( * parameter may be NULL. * @param[in] other_chars_to_escape * nul-terminated array of additional characters to escape with a - * backslash. This must not be NULL. + * backslash. This may be NULL. * * @return dst ------------------------------------------------------------------------------*/ -- 2.4.3 ------------------------------------------------------------------------------ _______________________________________________ rpstir-devel mailing list rpstir-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpstir-devel