]> git.ipfire.org Git - thirdparty/git.git/commit - bundle.c
Terminate argv with NULL before calling setup_revisions()
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Thu, 21 May 2009 09:32:44 +0000 (19:32 +1000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 May 2009 15:56:24 +0000 (08:56 -0700)
commita80aad7b85fc560451e07792d64ab6cb15a39914
treeed917349c318912c25f5653260f4dc970287f099
parent06f391906a69e410c9a6ca5e13774529a091385d
Terminate argv with NULL before calling setup_revisions()

It is convention that argv should be terminated with NULL, even if
argc is used to specify the size of argv. setup_revisions() requires
this and may segfault otherwise.

This patch makes sure that all argv (that I can find) is NULL terminated.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bundle.c
http-push.c