aboutsummaryrefslogtreecommitdiffstats
path: root/parse-options.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-02-13 13:39:13 -0800
committerJunio C Hamano <gitster@pobox.com>2018-02-13 13:39:13 -0800
commitcbf0240f82fc6b7072c7d18fa56caace4902a44b (patch)
tree5bf09c102c34b2984b2a09ac658afd673e876fd3 /parse-options.c
parentMerge branch 'tg/split-index-fixes' (diff)
parentUse MOVE_ARRAY (diff)
downloadgit-cbf0240f82fc6b7072c7d18fa56caace4902a44b.tar.gz
git-cbf0240f82fc6b7072c7d18fa56caace4902a44b.zip
Merge branch 'sg/cocci-move-array'
Code clean-up. * sg/cocci-move-array: Use MOVE_ARRAY
Diffstat (limited to 'parse-options.c')
-rw-r--r--parse-options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse-options.c b/parse-options.c
index fca7159646..d02eb8b015 100644
--- a/parse-options.c
+++ b/parse-options.c
@@ -525,7 +525,7 @@ unknown:
int parse_options_end(struct parse_opt_ctx_t *ctx)
{
- memmove(ctx->out + ctx->cpidx, ctx->argv, ctx->argc * sizeof(*ctx->out));
+ MOVE_ARRAY(ctx->out + ctx->cpidx, ctx->argv, ctx->argc);
ctx->out[ctx->cpidx + ctx->argc] = NULL;
return ctx->cpidx + ctx->argc;
}