Fixed temp name handling.

This commit is contained in:
Alexandre Julliard 2002-07-16 03:21:35 +00:00
parent 7d4ee77cab
commit 4bc1ebbdaf
1 changed files with 2 additions and 1 deletions

View File

@ -115,8 +115,9 @@ int wpp_parse_temp( const char *input, char **output_name )
if(!(temp_name = tmpnam(NULL)))
{
fprintf(stderr, "Could not generate a temp-name\n");
temp_name = pp_xstrdup(temp_name);
exit(2);
}
temp_name = pp_xstrdup(temp_name);
if (!(output = fopen(temp_name, "wt")))
{