[FFmpeg-devel] [PATCH] do not memset for a size of 0

Benoit Fouet benoit.fouet
Mon Oct 12 19:23:04 CEST 2009


Alex Converse wrote :
> On Mon, Oct 12, 2009 at 11:20 AM, Benoit Fouet <benoit.fouet at free.fr> wrote:
>   
>> Hi,
>>
>> the following patch fixes the linker warning:
>> /home/hack/ffmpeg/ffmpeg_x86/libavcodec/libavcodec.a(pcx.o): In function
>> `memset':
>>
>>
>> /usr/include/bits/string3.h:82: warning: memset used with constant zero
>> length parameter; this could be due to transposed parameters
>>
>>     
>
> Cough cough: http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2009-October/076673.html
>   

hadn't seen it, sorry.
I like your patch, though :)

Ben




More information about the ffmpeg-devel mailing list