aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/main.c b/main.c
index e29c051..58538f0 100644
--- a/main.c
+++ b/main.c
@@ -849,8 +849,7 @@ int main(int argc, char *argv[])
else
filecnt = options->filecnt;
- files = emalloc(filecnt * sizeof(*files));
- memset(files, 0, filecnt * sizeof(*files));
+ files = ecalloc(filecnt, sizeof(*files));
fileidx = 0;
if (options->from_stdin) {