Skip to content

Commit 8a713c1

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

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
@@ -2157,7 +2157,7 @@ static int exif_file_sections_realloc(image_info_type *ImageInfo, int section_in
21572157
/* {{{ exif_file_section_free
21582158
Discard all file_sections in ImageInfo
21592159
*/
2160-
static bool exif_file_sections_free(image_info_type *ImageInfo)
2160+
static void exif_file_sections_free(image_info_type *ImageInfo)
21612161
{
21622162
int i;
21632163

@@ -2168,7 +2168,6 @@ static bool exif_file_sections_free(image_info_type *ImageInfo)
21682168
}
21692169
EFREE_IF(ImageInfo->file.list);
21702170
ImageInfo->file.count = 0;
2171-
return true;
21722171
}
21732172
/* }}} */
21742173

0 commit comments

Comments
 (0)