MT#55283 silence asan warning

Change-Id: I131e51fc826a52fb571e78f09aea3aa99e9e7e1f
rfuchs/1989
Richard Fuchs 5 months ago
parent c0b245b979
commit 98c088fced

@ -380,6 +380,9 @@ INLINE str bencode_strdup_str(bencode_buffer_t *buf, const char *s) {
INLINE str bencode_str_strdup(bencode_buffer_t *buf, const str *s) {
str o = *s;
o.s = bencode_buffer_alloc(buf, o.len);
#ifdef ASAN_BUILD
if (o.len)
#endif
memcpy(o.s, s->s, o.len);
return o;
}

Loading…
Cancel
Save