pidgin: dc960b2a: Add an else when looking at the number o...

markdoliner at pidgin.im markdoliner at pidgin.im
Fri Jul 3 15:30:47 EDT 2009


-----------------------------------------------------------------
Revision: dc960b2ad7b32fa7d865552300a003a71689cfe9
Ancestor: b05f93669b412dc123c17699c1c394cb2f30673d
Author: markdoliner at pidgin.im
Date: 2009-07-03T19:28:25
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/dc960b2ad7b32fa7d865552300a003a71689cfe9

Modified files:
        libpurple/protocols/yahoo/yahoo.c

ChangeLog: 

Add an else when looking at the number of total elements and
remove a little bit of trailing whitespace

-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/yahoo.c	8e8e0865c37c599ef73597cf0e872a9030379cfa
+++ libpurple/protocols/yahoo/yahoo.c	ac978ff489f24a789117e76500f58837197a8139
@@ -1681,7 +1681,7 @@ static void yahoo_auth16_stage2(PurpleUt
 #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 @@ static void yahoo_auth16_stage1_cb(Purpl
 #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="));
 		}


More information about the Commits mailing list