Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] shell: add missing initialization of argv0_path

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:51:10

Johannes Sixt [off-list ref] writes:
Am 5/5/2011 8:40, schrieb Dima Sharov:
quoted
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).
Good catch! I checked PROGRAM_OBJS in Makefile, and shell.c was the only
one remaining that did not call this function.
Thanks for an Ack; the patch was corrupt but was trivial to fix-up.
Will queue.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help