[glib] Remove an unneeded NULL check
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Remove an unneeded NULL check
- Date: Tue, 14 Jun 2011 15:41:35 +0000 (UTC)
commit cf7f50b28ee84eb4f490540d0ebe84a9d5cf8375
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jun 14 09:50:55 2011 -0400
Remove an unneeded NULL check
data->proxy cannot be NULL here, or we'd have crashed 10 lines up.
gio/gdbusproxy.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gdbusproxy.c b/gio/gdbusproxy.c
index 6fd181b..e5e5907 100644
--- a/gio/gdbusproxy.c
+++ b/gio/gdbusproxy.c
@@ -1658,8 +1658,8 @@ get_connection_cb (GObject *source_object,
if (data->cancellable != NULL)
g_object_unref (data->cancellable);
- if (data->proxy != NULL)
- g_object_unref (data->proxy);
+
+ g_object_unref (data->proxy);
g_free (data);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]