| | @@ -14389,12 +14389,12 @@ |
| 14389 | 14389 | nAlloc = nColumn*4; |
| 14390 | 14390 | if( nAlloc<=0 ) nAlloc = 1; |
| 14391 | 14391 | azData = sqlite3_malloc64( nAlloc*sizeof(char*) ); |
| 14392 | 14392 | shell_check_oom(azData); |
| 14393 | 14393 | azNextLine = sqlite3_malloc64( nColumn*sizeof(char*) ); |
| 14394 | | - shell_check_oom(azNextLine); |
| 14395 | | - memset(azNextLine, 0, nColumn*sizeof(char*) ); |
| 14394 | + shell_check_oom((void*)azNextLine); |
| 14395 | + memset((void*)azNextLine, 0, nColumn*sizeof(char*) ); |
| 14396 | 14396 | if( p->bQuote ){ |
| 14397 | 14397 | azQuoted = sqlite3_malloc64( nColumn*sizeof(char*) ); |
| 14398 | 14398 | shell_check_oom(azQuoted); |
| 14399 | 14399 | memset(azQuoted, 0, nColumn*sizeof(char*) ); |
| 14400 | 14400 | } |
| | @@ -14427,22 +14427,22 @@ |
| 14427 | 14427 | shell_check_oom(abRowDiv); |
| 14428 | 14428 | } |
| 14429 | 14429 | abRowDiv[nRow] = 1; |
| 14430 | 14430 | nRow++; |
| 14431 | 14431 | for(i=0; i<nColumn; i++){ |
| 14432 | | - int w = p->colWidth[i]; |
| 14433 | | - if( w==0 ) w = p->iWrap; |
| 14432 | + int wx = p->colWidth[i]; |
| 14433 | + if( wx==0 ) wx = p->iWrap; |
| 14434 | 14434 | if( useNextLine ){ |
| 14435 | 14435 | uz = azNextLine[i]; |
| 14436 | 14436 | }else if( p->bQuote ){ |
| 14437 | 14437 | sqlite3_free(azQuoted[i]); |
| 14438 | 14438 | azQuoted[i] = quoted_column(pStmt,i); |
| 14439 | 14439 | uz = (const unsigned char*)azQuoted[i]; |
| 14440 | 14440 | }else{ |
| 14441 | 14441 | uz = (const unsigned char*)sqlite3_column_text(pStmt,i); |
| 14442 | 14442 | } |
| 14443 | | - azData[nRow*nColumn + i] = translateForDisplayAndDup(uz, &azNextLine[i], w); |
| 14443 | + azData[nRow*nColumn + i] = translateForDisplayAndDup(uz, &azNextLine[i], wx); |
| 14444 | 14444 | if( azNextLine[i] ){ |
| 14445 | 14445 | bNextLine = 1; |
| 14446 | 14446 | abRowDiv[nRow-1] = 0; |
| 14447 | 14447 | bMultiLineRowExists = 1; |
| 14448 | 14448 | } |
| | @@ -14553,11 +14553,11 @@ |
| 14553 | 14553 | utf8_printf(p->out, "Interrupt\n"); |
| 14554 | 14554 | } |
| 14555 | 14555 | nData = (nRow+1)*nColumn; |
| 14556 | 14556 | for(i=0; i<nData; i++) free(azData[i]); |
| 14557 | 14557 | sqlite3_free(azData); |
| 14558 | | - sqlite3_free(azNextLine); |
| 14558 | + sqlite3_free((void*)azNextLine); |
| 14559 | 14559 | sqlite3_free(abRowDiv); |
| 14560 | 14560 | if( azQuoted ){ |
| 14561 | 14561 | for(i=0; i<nColumn; i++) sqlite3_free(azQuoted[i]); |
| 14562 | 14562 | sqlite3_free(azQuoted); |
| 14563 | 14563 | } |
| 14564 | 14564 | |