mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-26 12:36:15 -05:00
fix errors when using a null default in conf_get_string
This commit is contained in:
@@ -266,7 +266,7 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
if(!foreground) {
|
||||
size = PATH_MAX;
|
||||
if(conf_get_string("general","logfile",NULL,logfile,&size)) {
|
||||
if(conf_get_string("general","logfile",NULL,logfile,&size) == CONF_E_SUCCESS) {
|
||||
err_setdest(logfile,LOGDEST_LOGFILE);
|
||||
} else {
|
||||
err_setdest("mt-daapd",LOGDEST_SYSLOG);
|
||||
|
||||
Reference in New Issue
Block a user