Use g_return_val_if_fail instead of g_return_if_fail, as the function now
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>
Fri, 1 Sep 2000 13:45:43 +0000 (13:45 +0000)
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>
Fri, 1 Sep 2000 13:45:43 +0000 (13:45 +0000)
2000-09-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* gstring.c (g_string_free): Use g_return_val_if_fail instead of
g_return_if_fail, as the function now is supposed to return
something.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gstring.c
gstring.c

index e24e2e5..1c63c85 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2000-09-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
+       * gstring.c (g_string_free): Use g_return_val_if_fail instead of
+       g_return_if_fail, as the function now is supposed to return
+       something.
+       
        * gerror.c, gerror.h (g_propagte_error): Added function
        g_propagte_error to hand over local errors to the calling
        function.
index e24e2e5..1c63c85 100644 (file)
@@ -1,5 +1,9 @@
 2000-09-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
+       * gstring.c (g_string_free): Use g_return_val_if_fail instead of
+       g_return_if_fail, as the function now is supposed to return
+       something.
+       
        * gerror.c, gerror.h (g_propagte_error): Added function
        g_propagte_error to hand over local errors to the calling
        function.
index e24e2e5..1c63c85 100644 (file)
@@ -1,5 +1,9 @@
 2000-09-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
+       * gstring.c (g_string_free): Use g_return_val_if_fail instead of
+       g_return_if_fail, as the function now is supposed to return
+       something.
+       
        * gerror.c, gerror.h (g_propagte_error): Added function
        g_propagte_error to hand over local errors to the calling
        function.
index e24e2e5..1c63c85 100644 (file)
@@ -1,5 +1,9 @@
 2000-09-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
+       * gstring.c (g_string_free): Use g_return_val_if_fail instead of
+       g_return_if_fail, as the function now is supposed to return
+       something.
+       
        * gerror.c, gerror.h (g_propagte_error): Added function
        g_propagte_error to hand over local errors to the calling
        function.
index e24e2e5..1c63c85 100644 (file)
@@ -1,5 +1,9 @@
 2000-09-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
+       * gstring.c (g_string_free): Use g_return_val_if_fail instead of
+       g_return_if_fail, as the function now is supposed to return
+       something.
+       
        * gerror.c, gerror.h (g_propagte_error): Added function
        g_propagte_error to hand over local errors to the calling
        function.
index e24e2e5..1c63c85 100644 (file)
@@ -1,5 +1,9 @@
 2000-09-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
+       * gstring.c (g_string_free): Use g_return_val_if_fail instead of
+       g_return_if_fail, as the function now is supposed to return
+       something.
+       
        * gerror.c, gerror.h (g_propagte_error): Added function
        g_propagte_error to hand over local errors to the calling
        function.
index e24e2e5..1c63c85 100644 (file)
@@ -1,5 +1,9 @@
 2000-09-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
+       * gstring.c (g_string_free): Use g_return_val_if_fail instead of
+       g_return_if_fail, as the function now is supposed to return
+       something.
+       
        * gerror.c, gerror.h (g_propagte_error): Added function
        g_propagte_error to hand over local errors to the calling
        function.
index e24e2e5..1c63c85 100644 (file)
@@ -1,5 +1,9 @@
 2000-09-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
+       * gstring.c (g_string_free): Use g_return_val_if_fail instead of
+       g_return_if_fail, as the function now is supposed to return
+       something.
+       
        * gerror.c, gerror.h (g_propagte_error): Added function
        g_propagte_error to hand over local errors to the calling
        function.
index ee38050..70a7666 100644 (file)
@@ -257,7 +257,7 @@ g_string_free (GString *string,
 {
   gchar *segment;
 
-  g_return_if_fail (string != NULL);
+  g_return_val_if_fail (string != NULL, NULL);
 
   if (free_segment)
     {
index ee38050..70a7666 100644 (file)
--- a/gstring.c
+++ b/gstring.c
@@ -257,7 +257,7 @@ g_string_free (GString *string,
 {
   gchar *segment;
 
-  g_return_if_fail (string != NULL);
+  g_return_val_if_fail (string != NULL, NULL);
 
   if (free_segment)
     {