diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-13 02:59:07 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-13 02:59:07 +0100 |
commit | 31a1896e0ede07d61efd7951cfadf02a1798d814 (patch) | |
tree | 3efacda332a17bfd49a9720fad42bb2accaed0fe /FICS/obsproc.c | |
parent | ea9094d80ef03763cfd81b916ed77abd837d8c7f (diff) |
Added null check
Diffstat (limited to 'FICS/obsproc.c')
-rw-r--r-- | FICS/obsproc.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 <err.h> + #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 " |