1c77d240de04728dfcb0e0b3ef973b69c1931728 angie Fri Dec 9 15:06:19 2016 -0800 Instead of adding setUdcCacheDir just before every call that opens a cart, call setUdcCacheDir at the beginning of cartNew. refs #18524 diff --git src/utils/newProg/newProg.c src/utils/newProg/newProg.c index 598dbe4..d8e0d08 100644 --- src/utils/newProg/newProg.c +++ src/utils/newProg/newProg.c @@ -66,31 +66,30 @@ , description ); fprintf(f, "/* Null terminated list of CGI Variables we don't want to save\n" " * permanently. */\n" "char *excludeVars[] = {\"Submit\", \"submit\", NULL,};\n" "\n" ); fprintf(f, "int main(int argc, char *argv[])\n" "/* Process command line. */\n" "{\n" "cgiSpoof(&argc, argv);\n" -"setUdcCacheDir();\n" "cartEmptyShell(doMiddle, hUserCookie(), excludeVars, oldVars);\n" "return 0;\n" "}\n" ); } void makeCommandLineBody(char *name, char *description, FILE *f) /* Create most of the C file for a command line. */ { /* Make the usage routine. */ fprintf(f, "void usage()\n"); fprintf(f, "/* Explain usage and exit. */\n"); fprintf(f, "{\n"); fprintf(f, "errAbort(\n"); fprintf(f, " \"%s - %s\\n\"\n", name, description);