Fixed temp name handling.
This commit is contained in:
parent
7d4ee77cab
commit
4bc1ebbdaf
|
@ -115,8 +115,9 @@ int wpp_parse_temp( const char *input, char **output_name )
|
||||||
if(!(temp_name = tmpnam(NULL)))
|
if(!(temp_name = tmpnam(NULL)))
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Could not generate a temp-name\n");
|
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")))
|
if (!(output = fopen(temp_name, "wt")))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue