aboutsummaryrefslogtreecommitdiffstats
path: root/ident.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-03-06 14:06:31 -0800
committerJunio C Hamano <gitster@pobox.com>2025-03-06 14:06:32 -0800
commita36e024e989f4d35f35987a60e3af8022cac3420 (patch)
tree10df6edd9c0c5de101a69fdf14e2e329ffb31c3b /ident.c
parentbc86ef104acd8e7c0ee7eb25de981ed5a3255615 (diff)
parent970916368764347c38d36c727b2e6e0086e784e3 (diff)
downloadgit-a36e024e989f4d35f35987a60e3af8022cac3420.tar.gz
Merge branch 'js/win-2.49-build-fixes'
Hotfix to help building Git-for-Windows. * js/win-2.49-build-fixes: cmake: generalize the handling of the `CLAR_TEST_OBJS` list meson: fix sorting ident: stop assuming that `gw_gecos` is writable
Diffstat (limited to 'ident.c')
-rw-r--r--ident.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ident.c b/ident.c
index caf41fb2a9..967895d885 100644
--- a/ident.c
+++ b/ident.c
@@ -59,7 +59,7 @@ static struct passwd *xgetpwuid_self(int *is_bogus)
static void copy_gecos(const struct passwd *w, struct strbuf *name)
{
- char *src;
+ const char *src;
/* Traditionally GECOS field had office phone numbers etc, separated
* with commas. Also & stands for capitalized form of the login name.