# HG changeset patch # User Mark Doliner # Date 1246649305 0 # Node ID 802de68c9fc34d5fdf48af6d3d7bca934922bd41 # Parent 63c026c0fede584612b76d2c85d14df4c076678b Add an else when looking at the number of total elements and remove a little bit of trailing whitespace diff -r 63c026c0fede -r 802de68c9fc3 libpurple/protocols/yahoo/yahoo.c --- a/libpurple/protocols/yahoo/yahoo.c Fri Jul 03 11:43:15 2009 +0000 +++ b/libpurple/protocols/yahoo/yahoo.c Fri Jul 03 19:28:25 2009 +0000 @@ -1681,7 +1681,7 @@ #if GLIB_CHECK_VERSION(2,6,0) totalelements = g_strv_length(split_data); #else - while (split_data[++totalelements] != NULL); + while (split_data[++totalelements] != NULL); #endif if (totalelements >= 4) { response_no = strtol(split_data[0], NULL, 10); @@ -1767,11 +1767,11 @@ #if GLIB_CHECK_VERSION(2,6,0) totalelements = g_strv_length(split_data); #else - while (split_data[++totalelements] != NULL); + while (split_data[++totalelements] != NULL); #endif if(totalelements == 1) response_no = strtol(split_data[0], NULL, 10); - if(totalelements >= 2) { + else if(totalelements >= 2) { response_no = strtol(split_data[0], NULL, 10); token = g_strdup(split_data[1] + strlen("ymsgr=")); }