]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
scheduler: Fix build failure on Linux with '-Werror -Wall'
authorZdenek Dohnal <zdohnal@redhat.com>
Wed, 29 Nov 2023 14:10:45 +0000 (15:10 +0100)
committerZdenek Dohnal <zdohnal@redhat.com>
Wed, 29 Nov 2023 14:10:45 +0000 (15:10 +0100)
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

index 9071271f0b7649fc38efd8a2d18ad462c8c6f6fb..1dfb543540c12e45c4f5bee2874ea9906541b0ef 100644 (file)
@@ -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 */