From d4a8ec3c8922a91d418bb9bc130c256c4e00d030 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Sat, 21 Nov 1998 16:40:42 -0500 Subject: snapshot of project "lynx", label v2-8-2dev_5 --- src/HTInit.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/HTInit.c') diff --git a/src/HTInit.c b/src/HTInit.c index 44c915b6..21a0dc4e 100644 --- a/src/HTInit.c +++ b/src/HTInit.c @@ -532,9 +532,14 @@ PRIVATE int PassesTest ARGS1( /* * Build the command and execute it. */ - if (LYOpenTemp(TmpFileName, HTML_SUFFIX, "w") == 0) - ExitWithError(CANNOT_OPEN_TEMP); - LYCloseTemp(TmpFileName); + if (strchr(mc->testcommand, '%')) { + if (LYOpenTemp(TmpFileName, HTML_SUFFIX, "w") == 0) + ExitWithError(CANNOT_OPEN_TEMP); + LYCloseTemp(TmpFileName); + } else { + /* We normally don't need a temp file name - kw */ + TmpFileName[0] = '\0'; + } cmd = (char *)malloc(1024); if (!cmd) ExitWithError(MEMORY_EXHAUSTED_ABORT); -- cgit 1.4.1-2-gfad0