author | Dima Sharov <git.avalakvista@gmail.com> | |
Thu, 5 May 2011 06:40:17 +0000 (09:40 +0300) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 5 May 2011 16:32:28 +0000 (09:32 -0700) | ||
commit | 2d9932cf67a886c8f356603b9ffd81832cc1850f | |
tree | a54b3861e7c99e8814e530888c843ef74a5b09fc | tree | snapshot |
parent | 2f312e8851035a85f431911075383265f1519c04 | commit | diff |
shell: add missing initialization of argv0_path
According to c6dfb39 (remote-curl: add missing initialization of
argv0_path, 2009-10-13), stand-alone programs (non-builtins)
must call git_extract_argv0_path(argv[0]) in order to help builds
that derive the installation prefix at runtime. Without this call,
the program segfaults (or raises an assertion failure).
Signed-off-by: Dima Sharov <git.avalakvista@gmail.com>
Acked-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
According to c6dfb39 (remote-curl: add missing initialization of
argv0_path, 2009-10-13), stand-alone programs (non-builtins)
must call git_extract_argv0_path(argv[0]) in order to help builds
that derive the installation prefix at runtime. Without this call,
the program segfaults (or raises an assertion failure).
Signed-off-by: Dima Sharov <git.avalakvista@gmail.com>
Acked-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
shell.c | diff | blob | history |