From 70ce489b36056f0a3a8283ca7477577662c8bd53 Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Wed, 19 Apr 2000 06:49:39 +0000 Subject: [PATCH] make sure that scanner->config->cset_skip_characters is "" instead of Wed Apr 19 08:32:32 2000 Tim Janik * 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 | 6 ++++++ ChangeLog.pre-2-0 | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-12 | 6 ++++++ ChangeLog.pre-2-2 | 6 ++++++ ChangeLog.pre-2-4 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ glib/gscanner.c | 2 ++ gscanner.c | 2 ++ 10 files changed, 52 insertions(+) diff --git a/ChangeLog b/ChangeLog index e1a0e7ac..e3dfb8b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Wed Apr 19 08:32:32 2000 Tim Janik + + * 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 * glib.h, glist.h, gslist.h: Changed the 'data' parameters from diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index e1a0e7ac..e3dfb8b4 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,9 @@ +Wed Apr 19 08:32:32 2000 Tim Janik + + * 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 * glib.h, glist.h, gslist.h: Changed the 'data' parameters from diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index e1a0e7ac..e3dfb8b4 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +Wed Apr 19 08:32:32 2000 Tim Janik + + * 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 * glib.h, glist.h, gslist.h: Changed the 'data' parameters from diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index e1a0e7ac..e3dfb8b4 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,9 @@ +Wed Apr 19 08:32:32 2000 Tim Janik + + * 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 * glib.h, glist.h, gslist.h: Changed the 'data' parameters from diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index e1a0e7ac..e3dfb8b4 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +Wed Apr 19 08:32:32 2000 Tim Janik + + * 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 * glib.h, glist.h, gslist.h: Changed the 'data' parameters from diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index e1a0e7ac..e3dfb8b4 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +Wed Apr 19 08:32:32 2000 Tim Janik + + * 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 * glib.h, glist.h, gslist.h: Changed the 'data' parameters from diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index e1a0e7ac..e3dfb8b4 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +Wed Apr 19 08:32:32 2000 Tim Janik + + * 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 * glib.h, glist.h, gslist.h: Changed the 'data' parameters from diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index e1a0e7ac..e3dfb8b4 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +Wed Apr 19 08:32:32 2000 Tim Janik + + * 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 * glib.h, glist.h, gslist.h: Changed the 'data' parameters from diff --git a/glib/gscanner.c b/glib/gscanner.c index fdbdbf27..bbcbc7fd 100644 --- a/glib/gscanner.c +++ b/glib/gscanner.c @@ -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; diff --git a/gscanner.c b/gscanner.c index fdbdbf27..bbcbc7fd 100644 --- a/gscanner.c +++ b/gscanner.c @@ -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; -- 2.34.1