[Freeswitch-svn] [commit] r6478 - freeswitch/trunk/src
Freeswitch SVN
mikej at freeswitch.org
Mon Dec 3 11:17:28 EST 2007
Author: mikej
Date: Mon Dec 3 11:17:28 2007
New Revision: 6478
Modified:
freeswitch/trunk/src/switch_core.c
Log:
better file open failure check (FSCORE-67)
Modified: freeswitch/trunk/src/switch_core.c
==============================================================================
--- freeswitch/trunk/src/switch_core.c (original)
+++ freeswitch/trunk/src/switch_core.c Mon Dec 3 11:17:28 2007
@@ -605,7 +605,8 @@
mime_path = switch_mprintf("%s/%s", SWITCH_GLOBAL_dirs.conf_dir, cf);
assert(mime_path);
- if (!(fd = open(mime_path, O_RDONLY))) {
+ fd = open(mime_path, O_RDONLY);
+ if (fd <= 0) {
return;
}
More information about the Freeswitch-svn
mailing list