Mercurial > pidgin
comparison src/protocols/yahoo/yahoo.c @ 10009:c124bef68132
[gaim-migrate @ 10926]
Thou shalt NULL terminate va_lists!
This fixes the crash-at-startup bug I mentioned in my commit
of Dave West's stuff last night.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 10 Sep 2004 19:51:52 +0000 |
parents | e4a032202d49 |
children | 2b6bf836c6b9 |
comparison
equal
deleted
inserted
replaced
10008:50c1724d5e59 | 10009:c124bef68132 |
---|---|
3099 | 3099 |
3100 if (!yd || !yd->wm) { | 3100 if (!yd || !yd->wm) { |
3101 type = gaim_status_type_new_with_attrs(GAIM_STATUS_AVAILABLE, "available-wm", | 3101 type = gaim_status_type_new_with_attrs(GAIM_STATUS_AVAILABLE, "available-wm", |
3102 "Available With Message", TRUE, TRUE, FALSE, | 3102 "Available With Message", TRUE, TRUE, FALSE, |
3103 "message", _("Message"), | 3103 "message", _("Message"), |
3104 gaim_value_new(GAIM_TYPE_STRING)); | 3104 gaim_value_new(GAIM_TYPE_STRING), NULL); |
3105 types = g_list_append(types, type); | 3105 types = g_list_append(types, type); |
3106 | 3106 |
3107 | 3107 |
3108 type = gaim_status_type_new(GAIM_STATUS_AWAY, "brb", _("Be Right Back"), TRUE); | 3108 type = gaim_status_type_new(GAIM_STATUS_AWAY, "brb", _("Be Right Back"), TRUE); |
3109 types = g_list_append(types, type); | 3109 types = g_list_append(types, type); |
3133 types = g_list_append(types, type); | 3133 types = g_list_append(types, type); |
3134 | 3134 |
3135 type = gaim_status_type_new_with_attrs(GAIM_STATUS_AWAY, "away", | 3135 type = gaim_status_type_new_with_attrs(GAIM_STATUS_AWAY, "away", |
3136 "Away", TRUE, TRUE, FALSE, | 3136 "Away", TRUE, TRUE, FALSE, |
3137 "message", _("Message"), | 3137 "message", _("Message"), |
3138 gaim_value_new(GAIM_TYPE_STRING)); | 3138 gaim_value_new(GAIM_TYPE_STRING), NULL); |
3139 types = g_list_append(types, type); | 3139 types = g_list_append(types, type); |
3140 } | 3140 } |
3141 type = gaim_status_type_new(GAIM_STATUS_HIDDEN, "invisible", _("Invisible"), TRUE); | 3141 type = gaim_status_type_new(GAIM_STATUS_HIDDEN, "invisible", _("Invisible"), TRUE); |
3142 types = g_list_append(types, type); | 3142 types = g_list_append(types, type); |
3143 | 3143 |