Don't call g_set_error () with a NULL format. (#153103, Robert Ögren)
authorMatthias Clasen <maclas@gmx.de>
Mon, 20 Sep 2004 04:18:40 +0000 (04:18 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 20 Sep 2004 04:18:40 +0000 (04:18 +0000)
Mon Sep 20 00:17:37 2004  Matthias Clasen  <maclas@gmx.de>

* tests/option-test.c (error_test3_post_parse):
* tests/option-test.c (error_test2_post_parse):
* tests/option-test.c (error_test1_post_parse): Don't call
g_set_error () with a NULL format.  (#153103, Robert Ögren)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-6
ChangeLog.pre-2-8
tests/option-test.c

index 0826a7c..6f315a6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Mon Sep 20 00:17:37 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * tests/option-test.c (error_test3_post_parse): 
+       * tests/option-test.c (error_test2_post_parse): 
+       * tests/option-test.c (error_test1_post_parse): Don't call 
+       g_set_error () with a NULL format.  (#153103, Robert Ögren) 
+
 Mon Sep 20 00:13:48 2004  Matthias Clasen  <maclas@gmx.de>
 
        Make GOption remove long options completely. (#153113, Robert Ögren)
index 0826a7c..6f315a6 100644 (file)
@@ -1,3 +1,10 @@
+Mon Sep 20 00:17:37 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * tests/option-test.c (error_test3_post_parse): 
+       * tests/option-test.c (error_test2_post_parse): 
+       * tests/option-test.c (error_test1_post_parse): Don't call 
+       g_set_error () with a NULL format.  (#153103, Robert Ögren) 
+
 Mon Sep 20 00:13:48 2004  Matthias Clasen  <maclas@gmx.de>
 
        Make GOption remove long options completely. (#153113, Robert Ögren)
index 0826a7c..6f315a6 100644 (file)
@@ -1,3 +1,10 @@
+Mon Sep 20 00:17:37 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * tests/option-test.c (error_test3_post_parse): 
+       * tests/option-test.c (error_test2_post_parse): 
+       * tests/option-test.c (error_test1_post_parse): Don't call 
+       g_set_error () with a NULL format.  (#153103, Robert Ögren) 
+
 Mon Sep 20 00:13:48 2004  Matthias Clasen  <maclas@gmx.de>
 
        Make GOption remove long options completely. (#153113, Robert Ögren)
index 0826a7c..6f315a6 100644 (file)
@@ -1,3 +1,10 @@
+Mon Sep 20 00:17:37 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * tests/option-test.c (error_test3_post_parse): 
+       * tests/option-test.c (error_test2_post_parse): 
+       * tests/option-test.c (error_test1_post_parse): Don't call 
+       g_set_error () with a NULL format.  (#153103, Robert Ögren) 
+
 Mon Sep 20 00:13:48 2004  Matthias Clasen  <maclas@gmx.de>
 
        Make GOption remove long options completely. (#153113, Robert Ögren)
index 0826a7c..6f315a6 100644 (file)
@@ -1,3 +1,10 @@
+Mon Sep 20 00:17:37 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * tests/option-test.c (error_test3_post_parse): 
+       * tests/option-test.c (error_test2_post_parse): 
+       * tests/option-test.c (error_test1_post_parse): Don't call 
+       g_set_error () with a NULL format.  (#153103, Robert Ögren) 
+
 Mon Sep 20 00:13:48 2004  Matthias Clasen  <maclas@gmx.de>
 
        Make GOption remove long options completely. (#153113, Robert Ögren)
index 39d6688..08a4f92 100644 (file)
@@ -78,7 +78,7 @@ error_test1_post_parse (GOptionContext *context,
   g_assert (error_test1_int == 20);
 
   /* Set an error in the post hook */
-  g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, NULL);
+  g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, "");
 
   return FALSE;
 }
@@ -138,7 +138,7 @@ error_test2_post_parse (GOptionContext *context,
   g_assert (strcmp (error_test2_string, "bar") == 0);
 
   /* Set an error in the post hook */
-  g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, NULL);
+  g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, "");
 
   return FALSE;
 }
@@ -197,7 +197,7 @@ error_test3_post_parse (GOptionContext *context,
   g_assert (error_test3_boolean);
 
   /* Set an error in the post hook */
-  g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, NULL);
+  g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, "");
 
   return FALSE;
 }