]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
More LGTM changes.
authorMichael R Sweet <michael.r.sweet@gmail.com>
Mon, 18 Nov 2019 16:03:28 +0000 (11:03 -0500)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Mon, 18 Nov 2019 16:03:28 +0000 (11:03 -0500)
cups/adminutil.c
scheduler/auth.c

index f82f454a6b9af51c3a4add71c5889d9d02225cc1..3118968c67cfb24f6e4f3b33dadedbbf8b403c98 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Administration utility API definitions for CUPS.
  *
- * Copyright © 2007-2018 by Apple Inc.
+ * Copyright © 2007-2019 by Apple Inc.
  * Copyright © 2001-2007 by Easy Software Products.
  *
  * Licensed under Apache License v2.0.  See the file "LICENSE" for more
@@ -738,13 +738,9 @@ cupsAdminSetServerSettings(
     {
       if (!wrote_browsing)
       {
-       int new_share_printers = (share_printers > 0 ||
-                                 (share_printers == -1 &&
-                                  old_share_printers > 0));
-
         wrote_browsing = 1;
 
-        if (new_share_printers)
+        if (share_printers)
        {
          const char *localp = cupsGetOption("BrowseLocalProtocols",
                                             num_settings, settings);
index 5bb80edc942863f099f6fcf2a27960bed19d3690..4fbad6e2440f38375b957de68d1b0e6f20ff2033 100644 (file)
@@ -757,7 +757,7 @@ cupsdAuthorize(cupsd_client_t *con) /* I - Client connection */
     * Decode the authorization string to get the input token...
     */
 
-    len                = (int)strlen(authorization);
+    len                = (int)strlen(authorization) + 0;
     input_token.value  = malloc((size_t)len);
     input_token.value  = httpDecode64_2(input_token.value, &len,
                                        authorization);