[gnome-control-center] color: Remove useless NULL check
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] color: Remove useless NULL check
- Date: Thu, 20 Oct 2011 15:11:15 +0000 (UTC)
commit 7f8b2153c830a3782f038144f1d3434f78463b70
Author: Bastien Nocera <hadess hadess net>
Date: Thu Oct 20 15:39:05 2011 +0100
color: Remove useless NULL check
It cannot be NULL when we get to that point.
panels/color/cc-color-panel.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/panels/color/cc-color-panel.c b/panels/color/cc-color-panel.c
index 93a51e4..20c2b1d 100644
--- a/panels/color/cc-color-panel.c
+++ b/panels/color/cc-color-panel.c
@@ -658,8 +658,7 @@ gcm_prefs_profile_view_cb (GtkWidget *widget, CcColorPanel *prefs)
g_error_free (error);
}
- if (argv != NULL)
- g_ptr_array_unref (argv);
+ g_ptr_array_unref (argv);
g_free (options);
if (profile != NULL)
g_object_unref (profile);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]