[empathy] Use "foo == NULL" instead of "!foo".



commit 78a59f67de194944fb5c988e100a42e56e9de890
Author: Jonny Lamb <jonny lamb collabora co uk>
Date:   Fri Jun 5 15:10:07 2009 +0100

    Use "foo == NULL" instead of "!foo".
    
    Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>
---
 src/empathy-import-pidgin.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/empathy-import-pidgin.c b/src/empathy-import-pidgin.c
index 9b48c68..0baf70a 100644
--- a/src/empathy-import-pidgin.c
+++ b/src/empathy-import-pidgin.c
@@ -297,7 +297,8 @@ empathy_import_pidgin_load (void)
               GValue *server;
               server = g_hash_table_lookup (data->settings, "server");
 
-              if (!server || EMP_STR_EMPTY (g_value_get_string (server)))
+              if (server == NULL
+                  || EMP_STR_EMPTY (g_value_get_string (server)))
                 {
                   g_hash_table_remove (data->settings, "port");
                   g_hash_table_remove (data->settings, "server");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]