[PATCH v2 04/25] [libx11] Zero-initialized new
Alan Coopersmith
alan.coopersmith at oracle.com
Mon Jan 31 19:27:43 PST 2011
On 01/31/11 04:01 AM, Erkki Seppälä wrote:
> Using uninitialized value "new"
>
> Reviewed-by: Ander Conselvan de Oliveira <ander.conselvan-de-oliveira at nokia.com>
> Signed-off-by: Erkki Seppälä <erkki.seppala at vincit.fi>
> ---
> src/xlibi18n/lcGeneric.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/xlibi18n/lcGeneric.c b/src/xlibi18n/lcGeneric.c
> index 69ea97d..688a4cf 100644
> --- a/src/xlibi18n/lcGeneric.c
> +++ b/src/xlibi18n/lcGeneric.c
> @@ -428,7 +428,7 @@ read_charset_define(
> char name[BUFSIZ];
> XlcCharSet charsetd;
> char **value;
> - int num, new;
> + int num, new = 0;
> XlcSide side = XlcUnknown;
> char *tmp;
>
Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>
--
-Alan Coopersmith- alan.coopersmith at oracle.com
Oracle Solaris Platform Engineering: X Window System
More information about the xorg-devel
mailing list