提交 5afedb10 编写于 作者: P Palana

Fix DStr move constructor

Previously dstr_move would try to free the uninitialized value in
DStr::str::array
上级 113454a2
......@@ -26,7 +26,7 @@ class DStr {
public:
inline DStr() {dstr_init(&str);}
inline DStr(DStr &&other)
inline DStr(DStr &&other) : DStr()
{
dstr_move(&str, &other.str);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册