]> git.ipfire.org Git - thirdparty/git.git/commit
line-log: stop assigning string constant to file parent buffer
authorPatrick Steinhardt <ps@pks.im>
Fri, 7 Jun 2024 06:38:11 +0000 (08:38 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 7 Jun 2024 17:30:50 +0000 (10:30 -0700)
commit42d2ad55566013535c16b80fc2d445da93cceed3
treef44825c4cc18b1ee896a1f04426b2f3e0a9c6205
parent86badd4d0a51262c2da1ca45c36612a28aad3b59
line-log: stop assigning string constant to file parent buffer

Stop assigning a string constant to the file parent buffer and instead
assign an allocated string. While the code is fine in practice, it will
break once we compile with `-Wwrite-strings`.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
line-log.c