From 5a0f900569f421422bd7511a45c7346c7668e710 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 4 May 2026 23:03:22 +0200 Subject: global: fix libc constness warnings Signed-off-by: Jason A. Donenfeld --- ui-blame.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui-blame.c') diff --git a/ui-blame.c b/ui-blame.c index 9c575ef..5c6f36e 100644 --- a/ui-blame.c +++ b/ui-blame.c @@ -263,7 +263,7 @@ static int walk_tree(const struct object_id *oid, struct strbuf *base, static int basedir_len(const char *path) { - char *p = strrchr(path, '/'); + const char *p = strrchr(path, '/'); if (p) return p - path + 1; return 0; -- cgit v1.2.3