mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-29 10:36:35 +02:00
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:
@@ -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>
|
2000-04-10 Elliot Lee <sopwith@redhat.com>
|
||||||
|
|
||||||
* gstrfuncs.c: A stringified double can be longer than 32 chars -
|
* gstrfuncs.c: A stringified double can be longer than 32 chars -
|
||||||
fix space calculation routine to 'double' the max amount of space
|
fix space calculation routine to 'double' the max amount of space
|
||||||
a double & long double can take.
|
a double & long double can take.
|
||||||
|
@@ -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>
|
2000-04-10 Elliot Lee <sopwith@redhat.com>
|
||||||
|
|
||||||
* gstrfuncs.c: A stringified double can be longer than 32 chars -
|
* gstrfuncs.c: A stringified double can be longer than 32 chars -
|
||||||
fix space calculation routine to 'double' the max amount of space
|
fix space calculation routine to 'double' the max amount of space
|
||||||
a double & long double can take.
|
a double & long double can take.
|
||||||
|
@@ -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>
|
2000-04-10 Elliot Lee <sopwith@redhat.com>
|
||||||
|
|
||||||
* gstrfuncs.c: A stringified double can be longer than 32 chars -
|
* gstrfuncs.c: A stringified double can be longer than 32 chars -
|
||||||
fix space calculation routine to 'double' the max amount of space
|
fix space calculation routine to 'double' the max amount of space
|
||||||
a double & long double can take.
|
a double & long double can take.
|
||||||
|
@@ -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>
|
2000-04-10 Elliot Lee <sopwith@redhat.com>
|
||||||
|
|
||||||
* gstrfuncs.c: A stringified double can be longer than 32 chars -
|
* gstrfuncs.c: A stringified double can be longer than 32 chars -
|
||||||
fix space calculation routine to 'double' the max amount of space
|
fix space calculation routine to 'double' the max amount of space
|
||||||
a double & long double can take.
|
a double & long double can take.
|
||||||
|
@@ -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>
|
2000-04-10 Elliot Lee <sopwith@redhat.com>
|
||||||
|
|
||||||
* gstrfuncs.c: A stringified double can be longer than 32 chars -
|
* gstrfuncs.c: A stringified double can be longer than 32 chars -
|
||||||
fix space calculation routine to 'double' the max amount of space
|
fix space calculation routine to 'double' the max amount of space
|
||||||
a double & long double can take.
|
a double & long double can take.
|
||||||
|
@@ -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>
|
2000-04-10 Elliot Lee <sopwith@redhat.com>
|
||||||
|
|
||||||
* gstrfuncs.c: A stringified double can be longer than 32 chars -
|
* gstrfuncs.c: A stringified double can be longer than 32 chars -
|
||||||
fix space calculation routine to 'double' the max amount of space
|
fix space calculation routine to 'double' the max amount of space
|
||||||
a double & long double can take.
|
a double & long double can take.
|
||||||
|
@@ -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>
|
2000-04-10 Elliot Lee <sopwith@redhat.com>
|
||||||
|
|
||||||
* gstrfuncs.c: A stringified double can be longer than 32 chars -
|
* gstrfuncs.c: A stringified double can be longer than 32 chars -
|
||||||
fix space calculation routine to 'double' the max amount of space
|
fix space calculation routine to 'double' the max amount of space
|
||||||
a double & long double can take.
|
a double & long double can take.
|
||||||
|
@@ -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>
|
2000-04-10 Elliot Lee <sopwith@redhat.com>
|
||||||
|
|
||||||
* gstrfuncs.c: A stringified double can be longer than 32 chars -
|
* gstrfuncs.c: A stringified double can be longer than 32 chars -
|
||||||
fix space calculation routine to 'double' the max amount of space
|
fix space calculation routine to 'double' the max amount of space
|
||||||
a double & long double can take.
|
a double & long double can take.
|
||||||
|
@@ -189,6 +189,8 @@ g_scanner_new (GScannerConfig *config_templ)
|
|||||||
|
|
||||||
scanner->config->case_sensitive = config_templ->case_sensitive;
|
scanner->config->case_sensitive = config_templ->case_sensitive;
|
||||||
scanner->config->cset_skip_characters = config_templ->cset_skip_characters;
|
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_first= config_templ->cset_identifier_first;
|
||||||
scanner->config->cset_identifier_nth = config_templ->cset_identifier_nth;
|
scanner->config->cset_identifier_nth = config_templ->cset_identifier_nth;
|
||||||
scanner->config->cpair_comment_single = config_templ->cpair_comment_single;
|
scanner->config->cpair_comment_single = config_templ->cpair_comment_single;
|
||||||
|
@@ -189,6 +189,8 @@ g_scanner_new (GScannerConfig *config_templ)
|
|||||||
|
|
||||||
scanner->config->case_sensitive = config_templ->case_sensitive;
|
scanner->config->case_sensitive = config_templ->case_sensitive;
|
||||||
scanner->config->cset_skip_characters = config_templ->cset_skip_characters;
|
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_first= config_templ->cset_identifier_first;
|
||||||
scanner->config->cset_identifier_nth = config_templ->cset_identifier_nth;
|
scanner->config->cset_identifier_nth = config_templ->cset_identifier_nth;
|
||||||
scanner->config->cpair_comment_single = config_templ->cpair_comment_single;
|
scanner->config->cpair_comment_single = config_templ->cpair_comment_single;
|
||||||
|
Reference in New Issue
Block a user