diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1998-11-21 16:40:42 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1998-11-21 16:40:42 -0500 |
commit | d4a8ec3c8922a91d418bb9bc130c256c4e00d030 (patch) | |
tree | cfbc95b0f99be65ea5ffa312c9055552db804dfc /src/HTInit.c | |
parent | 6d7ee0488b037f002a9fec0d060cc9842d5f8acd (diff) | |
download | lynx-snapshots-d4a8ec3c8922a91d418bb9bc130c256c4e00d030.tar.gz |
snapshot of project "lynx", label v2-8-2dev_5
Diffstat (limited to 'src/HTInit.c')
-rw-r--r-- | src/HTInit.c | 11 |
1 files changed, 8 insertions, 3 deletions
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); |