about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorRory Bradford <roryrjb@gmail.com>2021-04-11 09:54:12 +0100
committerRory Bradford <roryrjb@gmail.com>2021-04-11 09:54:12 +0100
commitc5af93d9b0afd9ca21aadf6a389a9f454456acf1 (patch)
treefc813426f6cddc378145c90d79594e9778ae4f1c
parent249d2cf01750feaad1dd7bc29a0a998da7017052 (diff)
downloadrf-c5af93d9b0afd9ca21aadf6a389a9f454456acf1.tar.gz
Remove memset
This isn't required as we're already doing a calloc.

Signed-off-by: Rory Bradford <roryrjb@gmail.com>
-rw-r--r--rf.c2
1 files changed, 0 insertions, 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++];