mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-27 20:59:50 +00:00
Avoid fflush-ing NULL. Found by Klockwork (www.klocwork.com)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8424 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
8f436a9d52
commit
f4e5aa395e
@ -311,8 +311,10 @@ SWITCH_DECLARE(void) switch_log_printf(switch_text_channel_t channel, const char
|
|||||||
|
|
||||||
switch_safe_free(data);
|
switch_safe_free(data);
|
||||||
switch_safe_free(new_fmt);
|
switch_safe_free(new_fmt);
|
||||||
|
if (handle) {
|
||||||
fflush(handle);
|
fflush(handle);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
SWITCH_DECLARE(switch_status_t) switch_log_init(switch_memory_pool_t *pool)
|
SWITCH_DECLARE(switch_status_t) switch_log_init(switch_memory_pool_t *pool)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user