Set the buffer size to 0 to indicate an error in exif_loader_get_buf.
authorDan Fandrich <dan@coneharvesters.com>
Tue, 5 Feb 2019 10:09:58 +0000 (11:09 +0100)
committerDan Fandrich <dan@coneharvesters.com>
Tue, 5 Feb 2019 10:09:58 +0000 (11:09 +0100)
commite607d3064e860afa4cd0a84a59d197a09cf0f21d
tree5452933820fda15061f97f38d890b1f725877ef1
parent88b47b2f20bcc81788a9a5518a4f5eff6fd7ebbc
Set the buffer size to 0 to indicate an error in exif_loader_get_buf.

Otherwise, the caller has no way of knowing an error occurred, such as the NULL
check done in the previous commit.
libexif/exif-loader.c