make sure that scanner->config->cset_skip_characters is "" instead of
authorTim Janik <timj@gtk.org>
Wed, 19 Apr 2000 06:49:39 +0000 (06:49 +0000)
committerTim Janik <timj@src.gnome.org>
Wed, 19 Apr 2000 06:49:39 +0000 (06:49 +0000)
Wed Apr 19 08:32:32 2000  Tim Janik  <timj@gtk.org>

        * gscanner.c (g_scanner_new): make sure that
        scanner->config->cset_skip_characters is "" instead of NULL, so we
        don't segfault further on.

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/gscanner.c
gscanner.c

index e1a0e7acbcc30e27baad9d3149317b87998f402a..e3dfb8b4422e16ec932fb2b5856a2c7f47105b46 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Wed Apr 19 08:32:32 2000  Tim Janik  <timj@gtk.org>
+
+        * gscanner.c (g_scanner_new): make sure that
+        scanner->config->cset_skip_characters is "" instead of NULL, so we
+        don't segfault further on.
+
 2000-04-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * glib.h, glist.h, gslist.h: Changed the 'data' parameters from
index e1a0e7acbcc30e27baad9d3149317b87998f402a..e3dfb8b4422e16ec932fb2b5856a2c7f47105b46 100644 (file)
@@ -1,3 +1,9 @@
+Wed Apr 19 08:32:32 2000  Tim Janik  <timj@gtk.org>
+
+        * gscanner.c (g_scanner_new): make sure that
+        scanner->config->cset_skip_characters is "" instead of NULL, so we
+        don't segfault further on.
+
 2000-04-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * glib.h, glist.h, gslist.h: Changed the 'data' parameters from
index e1a0e7acbcc30e27baad9d3149317b87998f402a..e3dfb8b4422e16ec932fb2b5856a2c7f47105b46 100644 (file)
@@ -1,3 +1,9 @@
+Wed Apr 19 08:32:32 2000  Tim Janik  <timj@gtk.org>
+
+        * gscanner.c (g_scanner_new): make sure that
+        scanner->config->cset_skip_characters is "" instead of NULL, so we
+        don't segfault further on.
+
 2000-04-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * glib.h, glist.h, gslist.h: Changed the 'data' parameters from
index e1a0e7acbcc30e27baad9d3149317b87998f402a..e3dfb8b4422e16ec932fb2b5856a2c7f47105b46 100644 (file)
@@ -1,3 +1,9 @@
+Wed Apr 19 08:32:32 2000  Tim Janik  <timj@gtk.org>
+
+        * gscanner.c (g_scanner_new): make sure that
+        scanner->config->cset_skip_characters is "" instead of NULL, so we
+        don't segfault further on.
+
 2000-04-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * glib.h, glist.h, gslist.h: Changed the 'data' parameters from
index e1a0e7acbcc30e27baad9d3149317b87998f402a..e3dfb8b4422e16ec932fb2b5856a2c7f47105b46 100644 (file)
@@ -1,3 +1,9 @@
+Wed Apr 19 08:32:32 2000  Tim Janik  <timj@gtk.org>
+
+        * gscanner.c (g_scanner_new): make sure that
+        scanner->config->cset_skip_characters is "" instead of NULL, so we
+        don't segfault further on.
+
 2000-04-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * glib.h, glist.h, gslist.h: Changed the 'data' parameters from
index e1a0e7acbcc30e27baad9d3149317b87998f402a..e3dfb8b4422e16ec932fb2b5856a2c7f47105b46 100644 (file)
@@ -1,3 +1,9 @@
+Wed Apr 19 08:32:32 2000  Tim Janik  <timj@gtk.org>
+
+        * gscanner.c (g_scanner_new): make sure that
+        scanner->config->cset_skip_characters is "" instead of NULL, so we
+        don't segfault further on.
+
 2000-04-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * glib.h, glist.h, gslist.h: Changed the 'data' parameters from
index e1a0e7acbcc30e27baad9d3149317b87998f402a..e3dfb8b4422e16ec932fb2b5856a2c7f47105b46 100644 (file)
@@ -1,3 +1,9 @@
+Wed Apr 19 08:32:32 2000  Tim Janik  <timj@gtk.org>
+
+        * gscanner.c (g_scanner_new): make sure that
+        scanner->config->cset_skip_characters is "" instead of NULL, so we
+        don't segfault further on.
+
 2000-04-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * glib.h, glist.h, gslist.h: Changed the 'data' parameters from
index e1a0e7acbcc30e27baad9d3149317b87998f402a..e3dfb8b4422e16ec932fb2b5856a2c7f47105b46 100644 (file)
@@ -1,3 +1,9 @@
+Wed Apr 19 08:32:32 2000  Tim Janik  <timj@gtk.org>
+
+        * gscanner.c (g_scanner_new): make sure that
+        scanner->config->cset_skip_characters is "" instead of NULL, so we
+        don't segfault further on.
+
 2000-04-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * glib.h, glist.h, gslist.h: Changed the 'data' parameters from
index fdbdbf278e3579613e6d6194f6a26688186a0f6f..bbcbc7fd8decf3a880f9934462ac3cdaa372601b 100644 (file)
@@ -189,6 +189,8 @@ g_scanner_new (GScannerConfig       *config_templ)
   
   scanner->config->case_sensitive      = config_templ->case_sensitive;
   scanner->config->cset_skip_characters        = config_templ->cset_skip_characters;
+  if (!scanner->config->cset_skip_characters)
+    scanner->config->cset_skip_characters = "";
   scanner->config->cset_identifier_first= config_templ->cset_identifier_first;
   scanner->config->cset_identifier_nth = config_templ->cset_identifier_nth;
   scanner->config->cpair_comment_single        = config_templ->cpair_comment_single;
index fdbdbf278e3579613e6d6194f6a26688186a0f6f..bbcbc7fd8decf3a880f9934462ac3cdaa372601b 100644 (file)
@@ -189,6 +189,8 @@ g_scanner_new (GScannerConfig       *config_templ)
   
   scanner->config->case_sensitive      = config_templ->case_sensitive;
   scanner->config->cset_skip_characters        = config_templ->cset_skip_characters;
+  if (!scanner->config->cset_skip_characters)
+    scanner->config->cset_skip_characters = "";
   scanner->config->cset_identifier_first= config_templ->cset_identifier_first;
   scanner->config->cset_identifier_nth = config_templ->cset_identifier_nth;
   scanner->config->cpair_comment_single        = config_templ->cpair_comment_single;