projects
/
ruby-vorbistagger.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
742209b
)
Freeze the key in newly added entries in Ogg::Vorbis::Comments#[]=.
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Fri, 11 Aug 2006 14:47:55 +0000
(16:47 +0200)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Wed, 23 Aug 2006 17:33:24 +0000
(19:33 +0200)
This makes MainTest#test_modify_key pass.
ext/comments.c
patch
|
blob
|
history
diff --git
a/ext/comments.c
b/ext/comments.c
index bc7d844d0d10cf9829f7dd99f3fab4a4ac9912b2..27ea5c7008dba528a6dff0de6e8fe6b7d6010269 100644
(file)
--- a/
ext/comments.c
+++ b/
ext/comments.c
@@
-355,7
+355,7
@@
c_aset (VALUE self, VALUE key, VALUE value)
}
}
- tmp = rb_ary_new3 (2,
key
, value);
+ tmp = rb_ary_new3 (2,
rb_str_dup_frozen (key)
, value);
OBJ_FREEZE (tmp);
rb_ary_push (o->items, tmp);