msi: Initialize string pointer to NULL

Nathan Gallaher ngallaher at deepthought.org
Sat Oct 31 22:02:37 CDT 2009


This quenches a valgrind error about conditional on uninitialized value.
-------------- next part --------------
From 499d181179f9043cfd0e0123591f5762e49c88d5 Mon Sep 17 00:00:00 2001
From: Nate Gallaher <ngallaher at deepthought.org>
Date: Sat, 31 Oct 2009 18:53:01 -0400
Subject: msi: Initialize string pointer to NULL

Quenches valgrind warning about uninitialized memory.
---
 dlls/msi/msiquery.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/msi/msiquery.c b/dlls/msi/msiquery.c
index ddbb28d..9cb2a8e 100644
--- a/dlls/msi/msiquery.c
+++ b/dlls/msi/msiquery.c
@@ -71,6 +71,7 @@ UINT VIEW_find_column( MSIVIEW *table, LPCWSTR name, LPCWSTR table_name, UINT *n
         INT x;
 
         col_name = NULL;
+        haystack_table_name = NULL;
         r = table->ops->get_column_info( table, i, &col_name, NULL,
                                          NULL, &haystack_table_name );
         if( r != ERROR_SUCCESS )
-- 
1.6.0.4



More information about the wine-patches mailing list