/pidgin/main: 13cf92fa0198: connection: Taking breaks when codin...

Mike Ruprecht cmaiku at gmail.com
Sun May 15 11:11:27 EDT 2016


Changeset: 13cf92fa0198e8460f59a6569c47bc663bf9a055
Author:	 Mike Ruprecht <cmaiku at gmail.com>
Date:	 2016-05-02 23:17 -0500
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/13cf92fa0198

Description:

connection: Taking breaks when coding helps reduce errors

Actually use break's in the switch/case statement in
purple_connection_g_error().

diffstat:

 libpurple/connection.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (19 lines):

diff --git a/libpurple/connection.c b/libpurple/connection.c
--- a/libpurple/connection.c
+++ b/libpurple/connection.c
@@ -558,12 +558,15 @@ purple_connection_g_error(PurpleConnecti
 		switch (error->code) {
 			case G_TLS_ERROR_UNAVAILABLE:
 				reason = PURPLE_CONNECTION_ERROR_NO_SSL_SUPPORT;
+				break;
 			case G_TLS_ERROR_NOT_TLS:
 			case G_TLS_ERROR_HANDSHAKE:
 				reason = PURPLE_CONNECTION_ERROR_ENCRYPTION_ERROR;
+				break;
 			case G_TLS_ERROR_BAD_CERTIFICATE:
 			case G_TLS_ERROR_CERTIFICATE_REQUIRED:
 				reason = PURPLE_CONNECTION_ERROR_CERT_OTHER_ERROR;
+				break;
 			case G_TLS_ERROR_EOF:
 			case G_TLS_ERROR_MISC:
 			default:



More information about the Commits mailing list