Commit 56941c92 authored by Jeff Muizelaar's avatar Jeff Muizelaar
Browse files

Make dict::set() make a copy of the string if it is going to be add()ed.

parent 8e2a2497
......@@ -91,7 +91,7 @@ void Dict::set(char *key, Object *val) {
e->val.free();
e->val = *val;
} else {
add (key, val);
add (copyString(key), val);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment