mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-19 09:41:32 +08:00
libobs/util/dstr.c: Don't find/replace if empty
This commit is contained in:
@@ -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 = "";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user