Refactor error assignment in mod_pgsql.c

This commit is contained in:
Aron Podrigal 2024-01-30 06:55:14 -06:00
parent 3387906fd4
commit a27ddb1c68
1 changed files with 2 additions and 2 deletions

View File

@ -116,9 +116,9 @@ void pgsql_handle_set_error_if_not_set(switch_pgsql_handle_t *handle, char **err
if (zstr(err_str)) {
switch_safe_free(err_str);
err_str = strdup((char *)"SQL ERROR!");
} else {
*err = err_str;
}
*err = err_str;
}
}