After the previous commit, I realized that std::vector::data() also returns nullptr when the vector is empty. So I decided to emulate this behavior in DataBuf::c_data(). Anyways, the changes done in the previous commit are valid and allow us to avoid some processing when the DataBuf is empty. |
||
|---|---|---|
| .. | ||
| exiv2 | ||