1d76bf881d3e18580739e44698a0d1a499c2f9f1 hiram Fri Oct 2 10:31:39 2015 -0700 fixup gcc warnings for -Wunused-but-set-variable refs #16121 diff --git src/lib/mime.c src/lib/mime.c index 8a7084d..cfb9543 100644 --- src/lib/mime.c +++ src/lib/mime.c @@ -585,31 +585,30 @@ setBoundaryMB(b, boundary); /* dump any "epilog" that may be between the * end of the child boundary and the parent boundary */ getChunkMB(b, &bp, &size, &hasZeros); //debug //fprintf(stderr,"epilog size=%d\n",size); } else { char *bp=NULL; int size=0; boolean hasZeros=FALSE; - boolean toobig=FALSE; boolean asFile=FALSE; boolean convert=FALSE; FILE *f = NULL; struct dyString *dy=newDyString(1024); //debug //fprintf(stderr,"starting new part (non-multi), dumpMB: \n"); //dumpMB(b); //debug //debug //ct = hashFindVal(p->hdr,"content-transfer-encoding"); /* use lowercase key */ //fprintf(stderr,"cte from hash:%s\n",ct); while(TRUE) { // break if eop, eod, eoi @@ -617,31 +616,30 @@ //debug //fprintf(stderr,"bp=%lu size=%d, hasZeros=%d \n", // (unsigned long) bp, // size, // hasZeros); if (hasZeros) { p->binary=TRUE; } //if (hasZeros && !asFile) // { // convert=TRUE; // } if (!asFile && p->size+size > MAXPARTSIZE) { - toobig = TRUE; convert=TRUE; } if (convert) { struct tempName uploadedData; convert=FALSE; asFile = TRUE; makeTempName(&uploadedData, "hgSs", ".cgi"); p->fileName=cloneString(uploadedData.forCgi); f = mustOpen(p->fileName,"w"); mustWrite(f,dy->string,dy->stringSize); freeDyString(&dy); } if (asFile) {