[gnome-calendar/calendar-editor] utils: make NULL comparison explicit
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/calendar-editor] utils: make NULL comparison explicit
- Date: Sat, 16 May 2015 20:35:09 +0000 (UTC)
commit 5605363acd57549be3614b538ae0b952de51da55
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Sat May 16 16:32:07 2015 -0400
utils: make NULL comparison explicit
src/gcal-utils.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/gcal-utils.c b/src/gcal-utils.c
index cc8b381..3177591 100644
--- a/src/gcal-utils.c
+++ b/src/gcal-utils.c
@@ -661,24 +661,24 @@ uri_get_fields (const gchar *uri,
{
valid = TRUE;
- if (schema)
+ if (schema != NULL)
*schema = g_match_info_fetch (match, 1);
- if (host)
+ if (host != NULL)
*host = g_match_info_fetch (match, 2);
- if (path)
+ if (path != NULL)
*path = g_match_info_fetch (match, 3);
}
else
{
- if (schema)
+ if (schema != NULL)
*schema = NULL;
- if (host)
+ if (host != NULL)
*host = NULL;
- if (path)
+ if (path != NULL)
*path = NULL;
}
@@ -699,10 +699,10 @@ get_source_parent_name_color (GcalManager *manager,
parent_source = gcal_manager_get_source (manager, e_source_get_parent (source));
- if (name)
+ if (name != NULL)
*name = e_source_dup_display_name (parent_source);
- if (color)
+ if (color != NULL)
{
GdkRGBA c;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]