diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-01-31 12:27:35 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-01-31 17:48:36 +0100 |
commit | fb818b2ea194ec182aa3e776d38883dc615910a1 (patch) | |
tree | b82df56d7607dc3a610f4c1c1b6636060b079459 /src/readahead | |
parent | c07aeadfeabc2fa5bc58d7f41d79e2310d33d595 (diff) |
util: use alloca0() intead of alloca() + memzero()
Diffstat (limited to 'src/readahead')
-rw-r--r-- | src/readahead/readahead-collect.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/readahead/readahead-collect.c b/src/readahead/readahead-collect.c index 211ef957d9..be920062dc 100644 --- a/src/readahead/readahead-collect.c +++ b/src/readahead/readahead-collect.c @@ -129,8 +129,7 @@ static int pack_file(FILE *pack, const char *fn, bool on_btrfs) { } pages = l / page_size(); - vec = alloca(pages); - memzero(vec, pages); + vec = alloca0(pages); if (mincore(start, l, vec) < 0) { log_warning("mincore(%s) failed: %m", fn); r = -errno; |