mirror of
https://github.com/openharmony/third_party_libexif.git
synced 2026-07-21 00:26:31 -04:00
cherry pick eb4e678 from https://gitee.com/zhaozhiqiang31/third_party_libexif/pulls/70
AI-reviewer清理 Signed-off-by: zhaozhiqiang <zhaozhiqiang31@huawei.com>
This commit is contained in:
committed by
zhaozhiqiang31
parent
2376e0e952
commit
81ebb0b522
@@ -36,6 +36,9 @@ mnote_huawei_entry_get_value(MnoteHuaweiEntry *e, char *v, unsigned int maxlen)
|
||||
memset(v, 0, maxlen);
|
||||
int write_pos = 0;
|
||||
ExifLong data = 0;
|
||||
if (e->data == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (e->format == EXIF_FORMAT_ASCII) {
|
||||
snprintf(v, maxlen, _("%s"), e->data);
|
||||
|
||||
Reference in New Issue
Block a user