winealsa: Fix an uninitialized variable compiler warning.

Andrew Eikum aeikum at codeweavers.com
Fri Apr 6 09:31:58 CDT 2012


Thanks. GCC 4.7 must be smart enough to detect the same if-conditions,
and doesn't issue a warning for me. Kind of impressive, actually.

Andrew

On Fri, Apr 06, 2012 at 02:49:38AM +0200, Józef Kucia wrote:
> ---
>  dlls/winealsa.drv/mmdevdrv.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/dlls/winealsa.drv/mmdevdrv.c b/dlls/winealsa.drv/mmdevdrv.c
> index c99186b..1438f5b 100644
> --- a/dlls/winealsa.drv/mmdevdrv.c
> +++ b/dlls/winealsa.drv/mmdevdrv.c
> @@ -343,7 +343,7 @@ static WCHAR *construct_device_id(EDataFlow flow, const WCHAR *chunk1, const cha
>  {
>      WCHAR *ret;
>      const WCHAR *prefix;
> -    DWORD len_wchars = 0, chunk1_len, copied = 0, prefix_len;
> +    DWORD len_wchars = 0, chunk1_len = 0, copied = 0, prefix_len;
>  
>      static const WCHAR dashW[] = {' ','-',' ',0};
>      static const size_t dashW_len = (sizeof(dashW) / sizeof(*dashW)) - 1;
> -- 
> 1.7.8.5
> 
> 
> 



More information about the wine-devel mailing list