Skip to content

Commit fbc84dd

Browse files
committed
ext/exif: Voidify exif_discard_imageinfo()
This always returned true, and the return value was never checked anyway
1 parent 8a713c1 commit fbc84dd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/exif/exif.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4348,7 +4348,7 @@ static bool exif_scan_FILE_header(image_info_type *ImageInfo)
43484348
/* {{{ exif_discard_imageinfo
43494349
Discard data scanned by exif_read_file.
43504350
*/
4351-
static bool exif_discard_imageinfo(image_info_type *ImageInfo)
4351+
static void exif_discard_imageinfo(image_info_type *ImageInfo)
43524352
{
43534353
int i;
43544354

@@ -4376,7 +4376,6 @@ static bool exif_discard_imageinfo(image_info_type *ImageInfo)
43764376
}
43774377
exif_file_sections_free(ImageInfo);
43784378
memset(ImageInfo, 0, sizeof(*ImageInfo));
4379-
return true;
43804379
}
43814380
/* }}} */
43824381

0 commit comments

Comments
 (0)