diff options
author | Lukas Fleischer <git@cryptocrack.de> | 2015-01-10 22:33:21 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-01-12 11:12:39 -0800 |
commit | 20a4a931fb64dbfd32fb575a41591daafac29516 (patch) | |
tree | 4eb341bc574a100bf530df1898f39b5a8afb55b8 /log-tree.h | |
parent | 1da1e07c835e900337714cfad6c32a8dc0b36ac3 (diff) | |
download | git-lf/blame-commit-label.tar.gz |
blame.c: fix garbled error messagelf/blame-commit-label
The helper functions prepare_final() and prepare_initial() return a
pointer to a string that is a member of an object in the
revs->pending array.
Before 1da1e07c (clean up name allocation in prepare_revision_walk,
2014-10-15), these strings used to be non-volatile; they were
instead leaked more or less deliberately. But these days, these
strings are cleared before running prepare_revision_walk() which
potentially transforms the pointer target into a bogus string.
Fix this by maintaining a copy of the original string.
Signed-off-by: Lukas Fleischer <git@cryptocrack.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'log-tree.h')
0 files changed, 0 insertions, 0 deletions