diff --git a/src/switch_core.c b/src/switch_core.c index 973cfc8e13..4f1d73f002 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -605,7 +605,8 @@ static void load_mime_types(void) 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; }