comparison libpurple/protocols/jabber/xdata.c @ 18756:9b0fd9a4d01b

For XMPP multi-selection lists in generic data forms, the intent here was to use the option value as the label in the event that the label wasn't specified, but the wrong variable was being set. This probably happens only very rarely, because the label is pretty much always set. In fact, it wouldn't suprise me if this has never happened.
author Mark Doliner <mark@kingant.net>
date Tue, 31 Jul 2007 16:11:21 +0000
parents ab6d2763b8d8
children 3afcfbed2ced 44b4e8bd759b 516c5473e312
comparison
equal deleted inserted replaced
18755:84d53c3c699d 18756:9b0fd9a4d01b
254 254
255 if(!(value = xmlnode_get_data(valuenode))) 255 if(!(value = xmlnode_get_data(valuenode)))
256 continue; 256 continue;
257 257
258 if(!(lbl = xmlnode_get_attrib(optnode, "label"))) 258 if(!(lbl = xmlnode_get_attrib(optnode, "label")))
259 label = value; 259 lbl = value;
260 260
261 data->values = g_slist_prepend(data->values, value); 261 data->values = g_slist_prepend(data->values, value);
262 262
263 purple_request_field_list_add(field, lbl, value); 263 purple_request_field_list_add(field, lbl, value);
264 if(g_list_find_custom(selected, value, (GCompareFunc)strcmp)) 264 if(g_list_find_custom(selected, value, (GCompareFunc)strcmp))