From 15b5916ed82c8de48b85d7b7afe670cb00e79796 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Thu, 10 Jun 2021 00:37:08 +0000 Subject: snapshot of project "lynx", label v2-9-0dev_6j --- WWW/Library/Implementation/HTString.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'WWW/Library/Implementation/HTString.c') diff --git a/WWW/Library/Implementation/HTString.c b/WWW/Library/Implementation/HTString.c index 2c663546..78054d7b 100644 --- a/WWW/Library/Implementation/HTString.c +++ b/WWW/Library/Implementation/HTString.c @@ -1,5 +1,5 @@ /* - * $LynxId: HTString.c,v 1.79 2020/01/23 01:10:36 tom Exp $ + * $LynxId: HTString.c,v 1.81 2021/06/09 20:16:06 tom Exp $ * * Case-independent string comparison HTString.c * @@ -624,7 +624,7 @@ typedef enum { PUBLIC_IF_FIND_LEAKS char *StrAllocVsprintf(char **pstr, size_t dst_len, const char *fmt, - va_list * ap) + va_list *ap) { #ifdef HAVE_VASPRINTF /* @@ -1102,6 +1102,8 @@ void HTAddXpand(char **result, int number, const char *parameter) { + if (parameter == NULL) + parameter = ""; if (number > 0) { const char *last = HTAfterCommandArg(command, number - 1); const char *next = last; -- cgit 1.4.1-2-gfad0