From 8e1233e39539ec7f382f2b85ce198e664adf03e3 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 11 May 2002 21:57:51 +0000 Subject: removed the complaining about NULLs in string formats, they're more trouble than worth I think. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2773 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/formats.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/fe-common/core/formats.c b/src/fe-common/core/formats.c index 6941391e..1e3eadb0 100644 --- a/src/fe-common/core/formats.c +++ b/src/fe-common/core/formats.c @@ -227,10 +227,8 @@ void format_read_arglist(va_list va, FORMAT_REC *format, switch (format->paramtypes[num]) { case FORMAT_STRING: arglist[num] = (char *) va_arg(va, char *); - if (arglist[num] == NULL) { - g_warning("format_read_arglist(%s) : parameter %d is NULL", format->tag, num); + if (arglist[num] == NULL) arglist[num] = ""; - } break; case FORMAT_INT: { int d = (int) va_arg(va, int); -- cgit v1.2.3