54798a8835f5242b351e60eaab02a6a1165e1aec tdreszer Thu Oct 27 13:38:01 2011 -0700 This variable is used and does need to be initialized. diff --git src/lib/cheapcgi.c src/lib/cheapcgi.c index 3c3d873..b8207f7 100644 --- src/lib/cheapcgi.c +++ src/lib/cheapcgi.c @@ -336,31 +336,31 @@ //fflush(stderr); mb = initMimeBuf(STDIN_FILENO); //debug //fprintf(stderr,"got past initMimeBuf(STDIN_FILENO)\n"); //fflush(stderr); mp = parseMultiParts(mb, cloneString(dy->string)); /* The Alternate Header will get freed */ freeDyString(&dy); if(!mp->multi) /* expecting multipart child parts */ errAbort("Malformatted multipart-form."); //debug //fprintf(stderr,"GALT: Wow got past parse of MIME!\n"); //fflush(stderr); //debug -//ct = hashFindVal(mp->hdr,"content-type"); +ct = hashFindVal(mp->hdr,"content-type"); //fprintf(stderr,"GALT: main content-type: %s\n",ct); //fflush(stderr); if (!startsWith("multipart/form-data",ct)) errAbort("main content-type expected starts with [multipart/form-data], found [%s]",ct); for(mp=mp->multi;mp;mp=mp->next) { char *cd = NULL, *cdMain = NULL, *cdName = NULL, *cdFileName = NULL, *ct = NULL; cd = hashFindVal(mp->hdr,"content-disposition"); ct = hashFindVal(mp->hdr,"content-type"); //debug //fprintf(stderr,"GALT: content-disposition: %s\n",cd); //fprintf(stderr,"GALT: content-type: %s\n",ct); //fflush(stderr); cdMain=getMimeHeaderMainVal(cd);