Skip to content

Commit 8589471

Browse files
committed
ppd-ipp.c: Use bitwise OR in cond and save value
1 parent a9150c7 commit 8589471

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ppd/ppd-ipp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ ppdLoadAttributes(
658658
yres = res_y[0];
659659
}
660660
}
661-
else if (items[0][0] && ((num = strtol(items, &p, 10)) | 1) && errno == 0 && *p == '\0')
661+
else if (items[0][0] && ((num = strtol(items[0], &p, 10)) | 1) && errno == 0 && *p == '\0')
662662
{
663663
// bitwise OR is used in case the read string is "0".
664664
// we had to use strtol() in case there are keyword values starting with a number...
@@ -669,7 +669,7 @@ ppdLoadAttributes(
669669
int_item[j] = (int)strtol(items[j], &p, 10);
670670

671671
ippAddIntegers(attrs, IPP_TAG_PRINTER, IPP_TAG_INTEGER, item_buf,
672-
num_int_items, int_item);
672+
num_items, int_item);
673673
}
674674
else
675675
// General

0 commit comments

Comments
 (0)