diff options
author | Timo Sirainen <cras@irssi.org> | 2002-05-11 21:57:51 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-05-11 21:57:51 +0000 |
commit | 8e1233e39539ec7f382f2b85ce198e664adf03e3 (patch) | |
tree | a9fd42b8c7a2689674b8a92e9b9d38631fcacea5 /src/fe-common | |
parent | 308779dd4d79fb2a70e0a7f0d7b7aa5bd7b5b33c (diff) | |
download | irssi-8e1233e39539ec7f382f2b85ce198e664adf03e3.zip |
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
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/core/formats.c | 4 |
1 files changed, 1 insertions, 3 deletions
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); |