[gnome-calendar/calendar-editor] source-dialog: make NULL comparison explicit



commit ed0c20ba77e5cf035c106edef0d471922abcbc70
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Sat May 16 18:12:50 2015 -0400

    source-dialog: make NULL comparison explicit

 src/gcal-source-dialog.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c
index 9dd82da..d66e573 100644
--- a/src/gcal-source-dialog.c
+++ b/src/gcal-source-dialog.c
@@ -1394,10 +1394,10 @@ prompt_credentials (GcalSourceDialog  *dialog,
 
   if (response == GTK_RESPONSE_OK)
     {
-      if (username)
+      if (username != NULL)
         *username = g_strdup (gtk_entry_get_text (GTK_ENTRY (priv->credentials_user_entry)));
 
-      if (password)
+      if (password != NULL)
         *password = g_strdup (gtk_entry_get_text (GTK_ENTRY (priv->credentials_password_entry)));
     }
 


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