mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
ext/exif: Voidify exif_discard_imageinfo()
This always returned true, and the return value was never checked anyway
This commit is contained in:
parent
8a713c1e90
commit
fbc84dd056
1 changed files with 1 additions and 2 deletions
|
@ -4348,7 +4348,7 @@ static bool exif_scan_FILE_header(image_info_type *ImageInfo)
|
|||
/* {{{ exif_discard_imageinfo
|
||||
Discard data scanned by exif_read_file.
|
||||
*/
|
||||
static bool exif_discard_imageinfo(image_info_type *ImageInfo)
|
||||
static void exif_discard_imageinfo(image_info_type *ImageInfo)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
@ -4376,7 +4376,6 @@ static bool exif_discard_imageinfo(image_info_type *ImageInfo)
|
|||
}
|
||||
exif_file_sections_free(ImageInfo);
|
||||
memset(ImageInfo, 0, sizeof(*ImageInfo));
|
||||
return true;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue