[svn:parrot] r42571 - trunk/src/string
chromatic at svn.parrot.org
chromatic at svn.parrot.org
Wed Nov 18 23:42:06 UTC 2009
Author: chromatic
Date: Wed Nov 18 23:42:05 2009
New Revision: 42571
URL: https://trac.parrot.org/parrot/changeset/42571
Log:
[string] Initialized the encoding pointer variables, in the hopes that they
will no longer contain random memory and cause odd failures before proper
initialization. Hopefully this initialization won't upset picky C++ compilers.
Modified:
trunk/src/string/encoding.c
Modified: trunk/src/string/encoding.c
==============================================================================
--- trunk/src/string/encoding.c Wed Nov 18 23:38:06 2009 (r42570)
+++ trunk/src/string/encoding.c Wed Nov 18 23:42:05 2009 (r42571)
@@ -36,11 +36,11 @@
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */
/* HEADERIZER END: static */
-ENCODING *Parrot_default_encoding_ptr;
-ENCODING *Parrot_fixed_8_encoding_ptr;
-ENCODING *Parrot_utf8_encoding_ptr;
-ENCODING *Parrot_ucs2_encoding_ptr;
-ENCODING *Parrot_utf16_encoding_ptr;
+ENCODING *Parrot_default_encoding_ptr = NULL;
+ENCODING *Parrot_fixed_8_encoding_ptr = NULL;
+ENCODING *Parrot_utf8_encoding_ptr = NULL;
+ENCODING *Parrot_ucs2_encoding_ptr = NULL;
+ENCODING *Parrot_utf16_encoding_ptr = NULL;
typedef struct One_encoding {
NOTNULL(ENCODING *encoding);
More information about the parrot-commits
mailing list