[gnome-builder] libide: fix return value error



commit 234da1e0468433035c2e219c29115cd6761679dd
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Wed Apr 8 14:19:00 2015 +0800

    libide: fix return value error
    
    https://bugzilla.gnome.org/show_bug.cgi?id=747488

 libide/ide-vcs-uri.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libide/ide-vcs-uri.c b/libide/ide-vcs-uri.c
index a3624ad..67772d2 100644
--- a/libide/ide-vcs-uri.c
+++ b/libide/ide-vcs-uri.c
@@ -269,7 +269,7 @@ ide_vcs_uri_get_host (const IdeVcsUri *self)
 guint
 ide_vcs_uri_get_port (const IdeVcsUri *self)
 {
-  g_return_val_if_fail (self, NULL);
+  g_return_val_if_fail (self, 0);
 
   return self->port;
 }
@@ -376,7 +376,7 @@ ide_vcs_uri_to_string (const IdeVcsUri *self)
 {
   GString *str;
 
-  g_return_if_fail (self);
+  g_return_val_if_fail (self, NULL);
 
   str = g_string_new (NULL);
 


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