Paul Vriens : msi: Only call MSI_RecordGetString() when needed (Coverity).

Alexandre Julliard julliard at winehq.org
Thu Mar 17 12:27:02 CDT 2011


Module: wine
Branch: master
Commit: abdecfbe1756378d137435858fd3d693a23229d4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=abdecfbe1756378d137435858fd3d693a23229d4

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Thu Mar 17 14:55:30 2011 +0100

msi: Only call MSI_RecordGetString() when needed (Coverity).

---

 dlls/msi/table.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/msi/table.c b/dlls/msi/table.c
index 80fe3ee..14f4d30 100644
--- a/dlls/msi/table.c
+++ b/dlls/msi/table.c
@@ -2595,7 +2595,7 @@ static void dump_record( MSIRECORD *rec )
     n = MSI_RecordGetFieldCount( rec );
     for( i=1; i<=n; i++ )
     {
-        LPCWSTR sval = MSI_RecordGetString( rec, i );
+        LPCWSTR sval;
 
         if( MSI_RecordIsNull( rec, i ) )
             TRACE("row -> []\n");




More information about the wine-cvs mailing list