提交 61dd9c07 authored 作者: Michael Jerris's avatar Michael Jerris

don't delete file if its the same file

上级 6310318c
......@@ -570,7 +570,11 @@ SWITCH_DECLARE(switch_bool_t) switch_simple_email(const char *to,
char cmd[1024] = "";
switch_snprintf(cmd, sizeof(cmd), "%s %s %s", convert_cmd, file, newfile);
switch_system(cmd, SWITCH_TRUE);
file = newfile;
if (strcmp(file, newfile)) {
file = newfile;
} else {
switch_safe_free(newfile);
}
}
switch_safe_free(dupfile);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论