]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
scheduler: Fix build failure on Linux with '-Werror -Wall' 835/head
authorZdenek Dohnal <zdohnal@redhat.com>
Mon, 27 Nov 2023 09:05:55 +0000 (10:05 +0100)
committerZdenek Dohnal <zdohnal@redhat.com>
Mon, 27 Nov 2023 09:05:55 +0000 (10:05 +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 cbdd71720972ddd345608f5db8e38eff210fd92f..e873c33737bda792af0041b6abf0f59f288f1c7d 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 */