diff options
| author | Junio C Hamano <gitster@pobox.com> | 2018-02-13 13:39:13 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2018-02-13 13:39:13 -0800 |
| commit | cbf0240f82fc6b7072c7d18fa56caace4902a44b (patch) | |
| tree | 5bf09c102c34b2984b2a09ac658afd673e876fd3 /parse-options.c | |
| parent | Merge branch 'tg/split-index-fixes' (diff) | |
| parent | Use MOVE_ARRAY (diff) | |
| download | git-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.c | 2 |
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; } |
