mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-08-29 15:22:06 +02:00
Fix Coverity-discovered issues.
This commit is contained in:
@@ -1144,7 +1144,6 @@ pdfioImageGetBytesPerLine(
|
||||
{
|
||||
pdfio_dict_t *params; // DecodeParms value
|
||||
int width, // Width of image
|
||||
height, // Height of image
|
||||
bpc, // BitsPerComponent of image
|
||||
colors; // Number of colors in image
|
||||
|
||||
@@ -1156,7 +1155,6 @@ pdfioImageGetBytesPerLine(
|
||||
bpc = (int)pdfioDictGetNumber(params, "BitsPerComponent");
|
||||
colors = (int)pdfioDictGetNumber(params, "Colors");
|
||||
width = (int)pdfioDictGetNumber(params, "Columns");
|
||||
height = (int)pdfioDictGetNumber(obj->value.value.dict, "Height");
|
||||
|
||||
if (width == 0)
|
||||
width = (int)pdfioDictGetNumber(obj->value.value.dict, "Width");
|
||||
|
Reference in New Issue
Block a user