aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changes/ticket288524
-rw-r--r--src/feature/dirparse/parsecommon.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/changes/ticket28852 b/changes/ticket28852
new file mode 100644
index 0000000000..a58cc3ba0e
--- /dev/null
+++ b/changes/ticket28852
@@ -0,0 +1,4 @@
+ o Minor features (performance):
+ - Remove a needless memset() call from get_token_arguments,
+ thereby speeding up the tokenization of directory objects by about
+ 20%. Closes ticket 28852.
diff --git a/src/feature/dirparse/parsecommon.c b/src/feature/dirparse/parsecommon.c
index 2e7cea8169..b53b0fe193 100644
--- a/src/feature/dirparse/parsecommon.c
+++ b/src/feature/dirparse/parsecommon.c
@@ -169,7 +169,6 @@ get_token_arguments(memarea_t *area, directory_token_t *tok,
char *cp = mem;
int j = 0;
char *args[MAX_ARGS];
- memset(args, 0, sizeof(args));
while (*cp) {
if (j == MAX_ARGS)
return -1;