[Gdiplus 01/16] Valgrind: fix warnings about using uninitialized memory, and leaking memory

Alexandre Julliard julliard at winehq.org
Thu Jul 3 05:43:54 CDT 2008


Adam Petaccia <adam at tpetaccia.com> writes:

> @@ -152,6 +154,8 @@ static void test_fontfamily (void)
>      WCHAR itsName[LF_FACESIZE];
>      GpStatus stat;
>  
> +    ZeroMemory(itsName, sizeof(itsName));
> +

Clearing buffers is almost always a sign that you are hiding a
bug. Please fix it properly instead.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list