mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
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
This commit is contained in:
parent
308779dd4d
commit
8e1233e395
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user