sw-collector: Use correct variable to report failure to open history file
This commit is contained in:
@@ -252,7 +252,8 @@ static int extract_history(sw_collector_info_t *info, sw_collector_db_t *db)
|
|||||||
h = chunk_map(history_path, FALSE);
|
h = chunk_map(history_path, FALSE);
|
||||||
if (!h)
|
if (!h)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "opening '%s' failed: %s", history, strerror(errno));
|
fprintf(stderr, "opening '%s' failed: %s", history_path,
|
||||||
|
strerror(errno));
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
history_chunk = *h;
|
history_chunk = *h;
|
||||||
|
|||||||
Reference in New Issue
Block a user