From 9589afca8e21da35d38012d6e58f16cb9ba7b0d5 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Sat, 24 Aug 2024 08:51:42 -0400 Subject: [PATCH] be politer to mistakes --- src/lib/util/log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/util/log.c b/src/lib/util/log.c index 8667cd4ed2..2598af93dc 100644 --- a/src/lib/util/log.c +++ b/src/lib/util/log.c @@ -105,8 +105,8 @@ void fr_canonicalize_error(TALLOC_CTX *ctx, char **sp, char **text, ssize_t slen * Catch bad callers. */ if (offset > inlen) { - *sp = NULL; - *text = NULL; + *sp = talloc_strdup(ctx, ""); + *text = talloc_strdup(ctx, ""); return; } -- 2.47.3