changeset 30891:a636aa086d0b

A gboolean doesn't need to be '1' to be TRUE. This is safer.
author Daniel Atallah <daniel.atallah@gmail.com>
date Mon, 01 Nov 2010 17:42:47 +0000
parents 12fdebe1e3a6
children 9fc5ba01b321
files libpurple/protocols/oscar/oscar.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oscar.c	Mon Nov 01 17:29:32 2010 +0000
+++ b/libpurple/protocols/oscar/oscar.c	Mon Nov 01 17:42:47 2010 +0000
@@ -621,7 +621,7 @@
 
 static const gchar *get_login_server(gboolean is_icq, gboolean use_ssl)
 {
-	return login_servers[is_icq*2 + use_ssl];
+	return login_servers[(is_icq ? 2 : 0) + (use_ssl ? 1 : 0)];
 }
 
 void