提交 38b610ef 编写于 作者: J jp9000

libobs/util/dstr.c: Don't find/replace if empty

上级 75d25b4e
......@@ -528,6 +528,9 @@ void dstr_replace(struct dstr *str, const char *find,
size_t find_len, replace_len;
char *temp;
if (dstr_isempty(str))
return;
if (!replace)
replace = "";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册