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

This commit is contained in:
jp9000
2014-05-30 02:39:33 -07:00
parent 75d25b4e5b
commit 38b610efca
+3
View File
@@ -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 = "";