parent
81b8ed48cf
commit
2e49437ed7
10
src/log.c
10
src/log.c
|
@ -357,11 +357,11 @@ logstore_t *log_find_file(log_t *logdata, const char *destination)
|
||||||
return NULL;
|
return NULL;
|
||||||
mylog(LOG_DEBUG, "Creating new logfile for %s: %s",
|
mylog(LOG_DEBUG, "Creating new logfile for %s: %s",
|
||||||
destination, filename);
|
destination, filename);
|
||||||
|
}
|
||||||
if (!log_add_file(logdata, destination, filename)) {
|
if (!log_add_file(logdata, destination, filename)) {
|
||||||
free(filename);
|
if (filename)
|
||||||
return NULL;
|
free(filename);
|
||||||
}
|
return NULL;
|
||||||
}
|
}
|
||||||
store = hash_get(&logdata->logfgs, destination);
|
store = hash_get(&logdata->logfgs, destination);
|
||||||
assert(store);
|
assert(store);
|
||||||
|
|
Loading…
Reference in New Issue