Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f7a8f1e authored by Anton Daubert's avatar Anton Daubert
Browse files

Fix the initialize of PreviewImageData to its default values.

Bug: 26762780, 26837999
Change-Id: Ifc268beb84903576b8c82681fddf2f51ffc4a2ec
parent bc0ce990
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -81,7 +81,8 @@ size_t FileStream::size() const {

bool GetExifFromRawImage(
        FileStream* stream, const String8& filename, piex::PreviewImageData& image_data) {
    memset(&image_data, 0, sizeof(image_data));
    // Reset the PreviewImageData to its default.
    image_data = piex::PreviewImageData();

    if (!stream->exists()) {
        // File is not exists.