Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion exif.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ IFEntry parseIFEntry_temp(const unsigned char *buf, const unsigned offs,
}
// and cut zero byte at the end, since we don't want that in the
// std::string
if (result.val_string()[result.val_string().length() - 1] == '\0') {
if (!result.val_string().empty() && result.val_string()[result.val_string().length() - 1] == '\0') {
result.val_string().resize(result.val_string().length() - 1);
}
break;
Expand Down