[Freeswitch-svn] [commit] r8424 - freeswitch/trunk/src
Freeswitch SVN
mikej at freeswitch.org
Thu May 15 17:31:47 EDT 2008
Author: mikej
Date: Thu May 15 17:31:47 2008
New Revision: 8424
Modified:
freeswitch/trunk/src/switch_log.c
Log:
Avoid fflush-ing NULL. Found by Klockwork (www.klocwork.com)
Modified: freeswitch/trunk/src/switch_log.c
==============================================================================
--- freeswitch/trunk/src/switch_log.c (original)
+++ freeswitch/trunk/src/switch_log.c Thu May 15 17:31:47 2008
@@ -311,7 +311,9 @@
switch_safe_free(data);
switch_safe_free(new_fmt);
- fflush(handle);
+ if (handle) {
+ fflush(handle);
+ }
}
SWITCH_DECLARE(switch_status_t) switch_log_init(switch_memory_pool_t *pool)
More information about the Freeswitch-svn
mailing list