[vinagre] Return the function if we did not receive a valid object.
- From: Jonh Wendell <jwendell src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vinagre] Return the function if we did not receive a valid object.
- Date: Tue, 27 Oct 2009 19:53:17 +0000 (UTC)
commit 9ca4052e06fdbed550da2b5093bf424a49588749
Author: Jonh Wendell <jwendell gnome org>
Date: Tue Oct 27 16:27:26 2009 -0300
Return the function if we did not receive a valid object.
vinagre/vinagre-connect.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/vinagre/vinagre-connect.c b/vinagre/vinagre-connect.c
index de99972..6e13c6f 100644
--- a/vinagre/vinagre-connect.c
+++ b/vinagre/vinagre-connect.c
@@ -379,6 +379,8 @@ VinagreConnection *vinagre_connect (VinagreWindow *window)
VinagreConnectDialog dialog;
dialog.xml = vinagre_utils_get_builder (NULL, NULL);
+ if (!dialog.xml)
+ return NULL;
dialog.dialog = GTK_WIDGET (gtk_builder_get_object (dialog.xml, "connect_dialog"));
gtk_window_set_transient_for (GTK_WINDOW (dialog.dialog), GTK_WINDOW (window));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]