sw-collector: Use correct variable to report failure to open history file

This commit is contained in:
Tobias Brunner
2017-08-08 15:29:41 +02:00
parent 3abb6a231d
commit d093488b96
+2 -1
View File
@@ -252,7 +252,8 @@ static int extract_history(sw_collector_info_t *info, sw_collector_db_t *db)
h = chunk_map(history_path, FALSE);
if (!h)
{
fprintf(stderr, "opening '%s' failed: %s", history, strerror(errno));
fprintf(stderr, "opening '%s' failed: %s", history_path,
strerror(errno));
return EXIT_FAILURE;
}
history_chunk = *h;