Commit e8e30465 authored by Mark Harris's avatar Mark Harris Committed by Timothy B. Terriberry

opus_tags_copy: return OP_EFAULT on failure

parent 3d431ff8
...@@ -282,7 +282,7 @@ int opus_tags_copy(OpusTags *_dst,const OpusTags *_src){ ...@@ -282,7 +282,7 @@ int opus_tags_copy(OpusTags *_dst,const OpusTags *_src){
ret=opus_tags_copy_impl(&dst,_src); ret=opus_tags_copy_impl(&dst,_src);
if(OP_UNLIKELY(ret<0))opus_tags_clear(&dst); if(OP_UNLIKELY(ret<0))opus_tags_clear(&dst);
else *_dst=*&dst; else *_dst=*&dst;
return 0; return ret;
} }
int opus_tags_add(OpusTags *_tags,const char *_tag,const char *_value){ int opus_tags_add(OpusTags *_tags,const char *_tag,const char *_value){
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment