make sure that scanner->config->cset_skip_characters is "" instead of

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.
This commit is contained in:
Tim Janik
2000-04-19 06:37:29 +00:00
committed by Tim Janik
parent cbb5e7af5f
commit e01d746cba
10 changed files with 60 additions and 0 deletions

View File

@@ -1,4 +1,11 @@
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-10 Elliot Lee <sopwith@redhat.com>
* gstrfuncs.c: A stringified double can be longer than 32 chars -
fix space calculation routine to 'double' the max amount of space
a double & long double can take.

View File

@@ -1,4 +1,11 @@
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-10 Elliot Lee <sopwith@redhat.com>
* gstrfuncs.c: A stringified double can be longer than 32 chars -
fix space calculation routine to 'double' the max amount of space
a double & long double can take.

View File

@@ -1,4 +1,11 @@
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-10 Elliot Lee <sopwith@redhat.com>
* gstrfuncs.c: A stringified double can be longer than 32 chars -
fix space calculation routine to 'double' the max amount of space
a double & long double can take.

View File

@@ -1,4 +1,11 @@
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-10 Elliot Lee <sopwith@redhat.com>
* gstrfuncs.c: A stringified double can be longer than 32 chars -
fix space calculation routine to 'double' the max amount of space
a double & long double can take.

View File

@@ -1,4 +1,11 @@
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-10 Elliot Lee <sopwith@redhat.com>
* gstrfuncs.c: A stringified double can be longer than 32 chars -
fix space calculation routine to 'double' the max amount of space
a double & long double can take.

View File

@@ -1,4 +1,11 @@
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-10 Elliot Lee <sopwith@redhat.com>
* gstrfuncs.c: A stringified double can be longer than 32 chars -
fix space calculation routine to 'double' the max amount of space
a double & long double can take.

View File

@@ -1,4 +1,11 @@
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-10 Elliot Lee <sopwith@redhat.com>
* gstrfuncs.c: A stringified double can be longer than 32 chars -
fix space calculation routine to 'double' the max amount of space
a double & long double can take.

View File

@@ -1,4 +1,11 @@
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-10 Elliot Lee <sopwith@redhat.com>
* gstrfuncs.c: A stringified double can be longer than 32 chars -
fix space calculation routine to 'double' the max amount of space
a double & long double can take.

View 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;

View 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;