Mercurial > pidgin.yaz
diff src/status.c @ 10713:7d4ca0d36f25
[gaim-migrate @ 12307]
This change makes some things not crash at signon (IRC, for one)
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 21 Mar 2005 04:17:21 +0000 |
parents | 662a99c6701f |
children | ad57a8b5495e |
line wrap: on
line diff
--- a/src/status.c Mon Mar 21 03:37:59 2005 +0000 +++ b/src/status.c Mon Mar 21 04:17:21 2005 +0000 @@ -795,6 +795,15 @@ { GaimValue *value; value = gaim_status_get_attr_value(status, id); + if (value == NULL) + { + gaim_debug_warning("status", "The attribute \"%s\" on the status \"%s\" is " + "not supported.\n", id, status->title); + /* Skip over the data and move on to the next attribute */ + va_arg(args, void *); + continue; + } + if (value->type == GAIM_TYPE_STRING) { const gchar *string_data = va_arg(args, const char *);