diff options
| author | Junio C Hamano <gitster@pobox.com> | 2014-07-22 10:25:17 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2014-07-22 10:25:17 -0700 |
| commit | cfececfe1ff1554783030a6f08b431ad50263800 (patch) | |
| tree | 8b034605baeeb0f2d867caa6e7270f604bce9247 /remote.c | |
| parent | 1fbc6e6e6062c14f21d0d826aaa3c154dba0f9e8 (diff) | |
| parent | 92e25b6b5b66320e73ace921f3db816ef4243d1b (diff) | |
| download | git-cfececfe1ff1554783030a6f08b431ad50263800.tar.gz | |
Merge branch 'bg/xcalloc-nmemb-then-size' into maint
* bg/xcalloc-nmemb-then-size:
transport-helper.c: rearrange xcalloc arguments
remote.c: rearrange xcalloc arguments
reflog-walk.c: rearrange xcalloc arguments
pack-revindex.c: rearrange xcalloc arguments
notes.c: rearrange xcalloc arguments
imap-send.c: rearrange xcalloc arguments
http-push.c: rearrange xcalloc arguments
diff.c: rearrange xcalloc arguments
config.c: rearrange xcalloc arguments
commit.c: rearrange xcalloc arguments
builtin/remote.c: rearrange xcalloc arguments
builtin/ls-remote.c: rearrange xcalloc arguments
Diffstat (limited to 'remote.c')
| -rw-r--r-- | remote.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -523,7 +523,7 @@ static void free_refspecs(struct refspec *refspec, int nr_refspec) static struct refspec *parse_refspec_internal(int nr_refspec, const char **refspec, int fetch, int verify) { int i; - struct refspec *rs = xcalloc(sizeof(*rs), nr_refspec); + struct refspec *rs = xcalloc(nr_refspec, sizeof(*rs)); for (i = 0; i < nr_refspec; i++) { size_t llen; |
