diff options
Diffstat (limited to 'src/readahead')
-rw-r--r-- | src/readahead/readahead-collect.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/readahead/readahead-collect.c b/src/readahead/readahead-collect.c index 75ec5b70c7..ccd8408c1b 100644 --- a/src/readahead/readahead-collect.c +++ b/src/readahead/readahead-collect.c @@ -479,8 +479,9 @@ static int collect(const char *root) { } entry->bin = (entrytime - starttime) / 2000000; - if ((k = hashmap_put(files, p, entry)) < 0) { - log_warning("set_put() failed: %s", strerror(-k)); + k = hashmap_put(files, p, entry); + if (k < 0) { + log_warning("hashmap_put() failed: %s", strerror(-k)); free(p); } } |