summaryrefslogtreecommitdiff
path: root/ext/syck/syck.c
diff options
context:
space:
mode:
authorwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-15 07:38:10 +0000
committerwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-15 07:38:10 +0000
commit42fd4ff686071388417a5533a6d86d75f89ecbdc (patch)
tree08993a9b6fe63e0639ee7beace5c3f87ec597bd8 /ext/syck/syck.c
parentd81342e3afc0fda6fc4d44bd431fc693901c0f30 (diff)
* ext/ruby/ext/syck/rubyext.c, lib/implicit.re: timestamp repairs to
timezone and milliseconds. * lib/syck.c (syck_parser_reset_levels): duplicate string literal to avoid warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck/syck.c')
-rw-r--r--ext/syck/syck.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/syck/syck.c b/ext/syck/syck.c
index df68768fed5..683f4c89994 100644
--- a/ext/syck/syck.c
+++ b/ext/syck/syck.c
@@ -119,7 +119,7 @@ syck_parser_reset_levels( SyckParser *p )
{
p->lvl_idx = 1;
p->levels[0].spaces = -1;
- p->levels[0].domain = ""; // YAML_DOMAIN + "/";
+ p->levels[0].domain = syck_strndup( "", 0 );
p->levels[0].status = syck_lvl_header;
}
}
@@ -220,6 +220,7 @@ syck_free_parser( SyckParser *p )
// Free all else
//
syck_parser_reset_levels( p );
+ S_FREE( p->levels[0].domain );
S_FREE( p->levels );
if ( p->buffer != NULL )