comparison 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
comparison
equal deleted inserted replaced
10712:b41c48d890d8 10713:7d4ca0d36f25
793 /* Set any attributes */ 793 /* Set any attributes */
794 while ((id = va_arg(args, const char *)) != NULL) 794 while ((id = va_arg(args, const char *)) != NULL)
795 { 795 {
796 GaimValue *value; 796 GaimValue *value;
797 value = gaim_status_get_attr_value(status, id); 797 value = gaim_status_get_attr_value(status, id);
798 if (value == NULL)
799 {
800 gaim_debug_warning("status", "The attribute \"%s\" on the status \"%s\" is "
801 "not supported.\n", id, status->title);
802 /* Skip over the data and move on to the next attribute */
803 va_arg(args, void *);
804 continue;
805 }
806
798 if (value->type == GAIM_TYPE_STRING) 807 if (value->type == GAIM_TYPE_STRING)
799 { 808 {
800 const gchar *string_data = va_arg(args, const char *); 809 const gchar *string_data = va_arg(args, const char *);
801 if (((string_data == NULL) && (value->data.string_data == NULL)) || 810 if (((string_data == NULL) && (value->data.string_data == NULL)) ||
802 ((string_data != NULL) && (value->data.string_data != NULL) && 811 ((string_data != NULL) && (value->data.string_data != NULL) &&