From b90bcf6f3e02e38710cb7b13519782b833dfc1a9 Mon Sep 17 00:00:00 2001 From: anon Date: Thu, 3 Aug 2023 16:08:11 +0200 Subject: [PATCH] ircmsg can no longer segfault on empty input --- src/irc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/irc.c b/src/irc.c index 72ac4df..76c1347 100644 --- a/src/irc.c +++ b/src/irc.c @@ -58,6 +58,7 @@ DECL void ircmsg(const char* fmt, ...) { + if(!strcmp(fmt, "") || fmt == NULL){ return; } va_list args; char * fmtdmsg; char * swp;