diff options
Diffstat (limited to 'src/testcurl/test_get_sendfile.c')
-rw-r--r-- | src/testcurl/test_get_sendfile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testcurl/test_get_sendfile.c b/src/testcurl/test_get_sendfile.c index d073fee3..f78b6d4e 100644 --- a/src/testcurl/test_get_sendfile.c +++ b/src/testcurl/test_get_sendfile.c | |||
@@ -458,13 +458,13 @@ main (int argc, char *const *argv) | |||
458 | FILE *f; | 458 | FILE *f; |
459 | 459 | ||
460 | if ( (NULL == (tmp = getenv ("TMPDIR"))) && | 460 | if ( (NULL == (tmp = getenv ("TMPDIR"))) && |
461 | (NULL == (tmp = getenv ("TMP"))) ) | 461 | (NULL == (tmp = getenv ("TMP"))) && |
462 | (NULL == (tmp = getenv ("TEMP"))) ) | ||
462 | tmp = "/tmp"; | 463 | tmp = "/tmp"; |
463 | sourcefile = malloc (strlen (tmp) + 32); | 464 | sourcefile = malloc (strlen (tmp) + 32); |
464 | sprintf (sourcefile, | 465 | sprintf (sourcefile, |
465 | "%s%s%s", | 466 | "%s/%s", |
466 | tmp, | 467 | tmp, |
467 | DIR_SEPARATOR_STR, | ||
468 | "test-mhd-sendfile"); | 468 | "test-mhd-sendfile"); |
469 | f = fopen (sourcefile, "w"); | 469 | f = fopen (sourcefile, "w"); |
470 | if (NULL == f) | 470 | if (NULL == f) |