Skip to content

Commit b31d4ca

Browse files
committed
More LGTM changes.
1 parent 6d391f7 commit b31d4ca

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

cups/adminutil.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Administration utility API definitions for CUPS.
33
*
4-
* Copyright © 2007-2018 by Apple Inc.
4+
* Copyright © 2007-2019 by Apple Inc.
55
* Copyright © 2001-2007 by Easy Software Products.
66
*
77
* Licensed under Apache License v2.0. See the file "LICENSE" for more
@@ -738,13 +738,9 @@ cupsAdminSetServerSettings(
738738
{
739739
if (!wrote_browsing)
740740
{
741-
int new_share_printers = (share_printers > 0 ||
742-
(share_printers == -1 &&
743-
old_share_printers > 0));
744-
745741
wrote_browsing = 1;
746742

747-
if (new_share_printers)
743+
if (share_printers)
748744
{
749745
const char *localp = cupsGetOption("BrowseLocalProtocols",
750746
num_settings, settings);

scheduler/auth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ cupsdAuthorize(cupsd_client_t *con) /* I - Client connection */
757757
* Decode the authorization string to get the input token...
758758
*/
759759

760-
len = (int)strlen(authorization);
760+
len = (int)strlen(authorization) + 0;
761761
input_token.value = malloc((size_t)len);
762762
input_token.value = httpDecode64_2(input_token.value, &len,
763763
authorization);

0 commit comments

Comments
 (0)