From 9e1afd07644450928e5701942dc1fba38256bb43 Mon Sep 17 00:00:00 2001 From: TapTap Date: Mon, 20 Jul 2026 17:20:21 +0200 Subject: [PATCH] fix: const-qualify dir_result to fix cppcheck style warning --- src/shared/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/file.c b/src/shared/file.c index 49f7cee..06f11c0 100644 --- a/src/shared/file.c +++ b/src/shared/file.c @@ -414,7 +414,7 @@ bool to_disk(const char* path, const void* data, unsigned long long data_size) { char* path_dup = str_dup(path); if (!path_dup) return false; - char* dir_result = dirname(path_dup); + const char* dir_result = dirname(path_dup); char* directory = str_dup(dir_result); free(path_dup); if (!directory)