forked from Telodendria/Telodendria
Fix segvault if no config file was specified.
This commit is contained in:
parent
d9991bbd77
commit
757938b293
1 changed files with 1 additions and 1 deletions
|
@ -477,7 +477,7 @@ finish:
|
||||||
* If we're not logging to standard output, then we can close it. Otherwise,
|
* If we're not logging to standard output, then we can close it. Otherwise,
|
||||||
* if we are logging to stdout, LogConfigFree() will close it for us.
|
* if we are logging to stdout, LogConfigFree() will close it for us.
|
||||||
*/
|
*/
|
||||||
if (!(tConfig->flags & TELODENDRIA_LOG_STDOUT))
|
if (!tConfig || !(tConfig->flags & TELODENDRIA_LOG_STDOUT))
|
||||||
{
|
{
|
||||||
fclose(stdout);
|
fclose(stdout);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue