comparison libgaim/status.c @ 14643:4df2827fc2eb

[gaim-migrate @ 17389] Fix sf bug #1469293 Checking if a va_list != NULL is not valid because va_list is not a pointer on some platforms. Conveniently the check wasn't necessary. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 28 Sep 2006 07:01:47 +0000
parents 6e89bfd2b33f
children
comparison
equal deleted inserted replaced
14642:426383e5b45d 14643:4df2827fc2eb
716 { 716 {
717 GList *attrs = NULL; 717 GList *attrs = NULL;
718 const gchar *id; 718 const gchar *id;
719 gpointer data; 719 gpointer data;
720 720
721 if (args != NULL) 721 while ((id = va_arg(args, const char *)) != NULL)
722 { 722 {
723 while ((id = va_arg(args, const char *)) != NULL) 723 attrs = g_list_append(attrs, (char *)id);
724 { 724 data = va_arg(args, void *);
725 attrs = g_list_append(attrs, (char *)id); 725 attrs = g_list_append(attrs, data);
726 data = va_arg(args, void *);
727 attrs = g_list_append(attrs, data);
728 }
729 } 726 }
730 gaim_status_set_active_with_attrs_list(status, active, attrs); 727 gaim_status_set_active_with_attrs_list(status, active, attrs);
731 g_list_free(attrs); 728 g_list_free(attrs);
732 } 729 }
733 730