From 3f36dfc2a53d45fe7147bbf71c39c1525acb47bf Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Wed, 29 Nov 2023 15:10:45 +0100 Subject: [PATCH] scheduler: Fix build failure on Linux with '-Werror -Wall' The string which we add into array stays `const` after fixing #814 (because `strdup()`, which caused memory leak returned `char *`) and compiler fails because of it if it runs with '-Werror -Wall'. --- scheduler/colorman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scheduler/colorman.c b/scheduler/colorman.c index 9071271f0b..1dfb543540 100644 --- a/scheduler/colorman.c +++ b/scheduler/colorman.c @@ -1014,7 +1014,7 @@ colord_create_profile( DBusError error; /* D-Bus error */ char *idstr; /* Profile ID string */ size_t idstrlen; /* Profile ID allocated length */ - const char *profile_path; /* Device object path */ + char *profile_path; /* Device object path */ char format_str[1024]; /* Qualifier format as a string */