mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04: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…
Reference in New Issue
Block a user