mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-07 05:13:32 +00:00
don't delete file if its the same file
This commit is contained in:
parent
6310318cad
commit
61dd9c0765
@ -570,7 +570,11 @@ SWITCH_DECLARE(switch_bool_t) switch_simple_email(const char *to,
|
|||||||
char cmd[1024] = "";
|
char cmd[1024] = "";
|
||||||
switch_snprintf(cmd, sizeof(cmd), "%s %s %s", convert_cmd, file, newfile);
|
switch_snprintf(cmd, sizeof(cmd), "%s %s %s", convert_cmd, file, newfile);
|
||||||
switch_system(cmd, SWITCH_TRUE);
|
switch_system(cmd, SWITCH_TRUE);
|
||||||
file = newfile;
|
if (strcmp(file, newfile)) {
|
||||||
|
file = newfile;
|
||||||
|
} else {
|
||||||
|
switch_safe_free(newfile);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
switch_safe_free(dupfile);
|
switch_safe_free(dupfile);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user