From c5af93d9b0afd9ca21aadf6a389a9f454456acf1 Mon Sep 17 00:00:00 2001 From: Rory Bradford Date: Sun, 11 Apr 2021 09:54:12 +0100 Subject: Remove memset This isn't required as we're already doing a calloc. Signed-off-by: Rory Bradford --- rf.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/rf.c b/rf.c index 1f51598..c192bdf 100644 --- a/rf.c +++ b/rf.c @@ -357,8 +357,6 @@ int main(int argc, char **argv) { int pattern_count = argc - optind; char **patterns = (char **)calloc(sizeof(char *), pattern_count); - memset(patterns, '\0', optind); - while (optind < argc) { patterns[i++] = argv[optind++]; -- cgit 1.4.1-2-gfad0