diff options
-rw-r--r-- | xbmc/dbwrappers/mysqldataset.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xbmc/dbwrappers/mysqldataset.cpp b/xbmc/dbwrappers/mysqldataset.cpp index 1bc60b44f0..9efb6f1c52 100644 --- a/xbmc/dbwrappers/mysqldataset.cpp +++ b/xbmc/dbwrappers/mysqldataset.cpp @@ -741,6 +741,7 @@ void MysqlDatabase::mysqlVXPrintf( etByte flag_rtz; /* True if trailing zeros should be removed */ etByte flag_exp; /* True to force display of the exponent */ int nsd; /* Number of significant digits returned */ + size_t idx2; length = 0; bufpt = 0; @@ -824,9 +825,9 @@ void MysqlDatabase::mysqlVXPrintf( /* Fetch the info entry for the field */ infop = &fmtinfo[0]; xtype = etINVALID; - for(idx=0; idx<ARRAY_SIZE(fmtinfo); idx++){ - if( c==fmtinfo[idx].fmttype ){ - infop = &fmtinfo[idx]; + for(idx2=0; idx2<ARRAY_SIZE(fmtinfo); idx2++){ + if( c==fmtinfo[idx2].fmttype ){ + infop = &fmtinfo[idx2]; if( useExtended || (infop->flags & FLAG_INTERN)==0 ){ xtype = infop->type; }else{ |