mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-09 00:43:42 +00:00
Refactor error assignment in mod_pgsql.c
This commit is contained in:
parent
3387906fd4
commit
a27ddb1c68
@ -116,9 +116,9 @@ void pgsql_handle_set_error_if_not_set(switch_pgsql_handle_t *handle, char **err
|
|||||||
if (zstr(err_str)) {
|
if (zstr(err_str)) {
|
||||||
switch_safe_free(err_str);
|
switch_safe_free(err_str);
|
||||||
err_str = strdup((char *)"SQL ERROR!");
|
err_str = strdup((char *)"SQL ERROR!");
|
||||||
} else {
|
|
||||||
*err = err_str;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*err = err_str;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user