mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-01 06:27:03 +03:00
Fix harmless compiler warnings in fuzzcheck.
FossilOrigin-Name: e7b4ffecc610c494ebd506977402ec48cc799780f96c6293c0ccf27697160aa1
This commit is contained in:
@ -1781,10 +1781,10 @@ int main(int argc, char **argv){
|
||||
for(i=iFirstInsArg; i<argc; i++){
|
||||
if( strcmp(argv[i],"-")==0 ){
|
||||
/* A filename of "-" means read multiple filenames from stdin */
|
||||
unsigned char zLine[2000];
|
||||
char zLine[2000];
|
||||
while( rc==0 && fgets(zLine,sizeof(zLine),stdin)!=0 ){
|
||||
size_t kk = strlen(zLine);
|
||||
while( kk>0 && isspace(zLine[kk-1]) ) kk--;
|
||||
while( kk>0 && (zLine[kk]=='\n' || zLine[kk]=='\r')) kk--;
|
||||
sqlite3_bind_text(pStmt, 1, zLine, kk, SQLITE_STATIC);
|
||||
sqlite3_step(pStmt);
|
||||
rc = sqlite3_reset(pStmt);
|
||||
|
Reference in New Issue
Block a user