mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
[Core] Fix dead nested assignments
This commit is contained in:
@@ -1142,7 +1142,7 @@ SWITCH_DECLARE(switch_bool_t) switch_simple_email(const char *to,
|
||||
}
|
||||
|
||||
if (!zstr(file) && !zstr(convert_cmd) && !zstr(convert_ext)) {
|
||||
if ((ext = strrchr(file, '.'))) {
|
||||
if (strrchr(file, '.')) {
|
||||
dupfile = strdup(file);
|
||||
if ((ext = strrchr(dupfile, '.'))) {
|
||||
*ext++ = '\0';
|
||||
@@ -1820,9 +1820,8 @@ SWITCH_DECLARE(switch_status_t) switch_resolve_host(const char *host, char *buf,
|
||||
{
|
||||
|
||||
struct addrinfo *ai;
|
||||
int err;
|
||||
|
||||
if ((err = getaddrinfo(host, 0, 0, &ai))) {
|
||||
if (getaddrinfo(host, 0, 0, &ai)) {
|
||||
return SWITCH_STATUS_FALSE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user