]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
don't blow up on shutdown in -nc mode.
authorMichael Jerris <mike@jerris.com>
Fri, 7 Dec 2007 02:04:23 +0000 (02:04 +0000)
committerMichael Jerris <mike@jerris.com>
Fri, 7 Dec 2007 02:04:23 +0000 (02:04 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6560 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_core.c

index b0668c0501aaac9a970d56c68fb309b59157c5c4..60535817aad0a2f0ab8f9bb388ca3ce8fc0d8fff 100644 (file)
@@ -999,7 +999,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_destroy(void)
 
 
 
-       if (runtime.console != stdout && runtime.console != stderr) {
+       if (runtime.console && runtime.console != stdout && runtime.console != stderr) {
                fclose(runtime.console);
                runtime.console = NULL;
        }