Fix potential NULL pointer dereference when checking config

This commit is contained in:
Heikki Hannikainen 2016-08-13 16:15:43 +03:00
parent d8897884a4
commit d49d7bfeb0
1 changed files with 1 additions and 1 deletions

View File

@ -1263,7 +1263,7 @@ int read_config(void)
failed = 1;
}
if (test_directory(rundir)) {
if ((rundir) && test_directory(rundir)) {
hlog(LOG_CRIT, "Config: rundir %s is not a directory.", rundir);
failed = 1;
}