Skip to content

Commit

Permalink
scheduler: Fix build failure on Linux with '-Werror -Wall'
Browse files Browse the repository at this point in the history
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'.
  • Loading branch information
zdohnal committed Nov 27, 2023
1 parent a7a80bd commit c7b7ad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scheduler/colorman.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */


Expand Down

0 comments on commit c7b7ad8

Please sign in to comment.