From 31a1896e0ede07d61efd7951cfadf02a1798d814 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Wed, 13 Dec 2023 02:59:07 +0100 Subject: Added null check --- FICS/obsproc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'FICS/obsproc.c') diff --git a/FICS/obsproc.c b/FICS/obsproc.c index 28fe4f0..d5b8fe2 100644 --- a/FICS/obsproc.c +++ b/FICS/obsproc.c @@ -24,6 +24,8 @@ #include "stdinclude.h" +#include + #include "command.h" #include "common.h" #include "comproc.h" @@ -1061,6 +1063,9 @@ stored_mail_moves(int p, int mail, param_list param) parray[wp].name, param[1].val.integer); } else { + if (param2string == NULL) /* XXX */ + errx(1, "%s: param2string == " + "NULL", __func__); if (strlen(param2string) == 1 && isalpha(param2string[0])) { sprintf(subj, "FICS journal " -- cgit v1.2.3