[Core] Fix dead nested assignments

This commit is contained in:
Andrey Volk
2022-01-11 19:16:53 +03:00
parent 1499acac9d
commit 56b6e954cf
21 changed files with 49 additions and 77 deletions

View File

@@ -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;
}