summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPierre Joye <pierre.php@gmail.com>2021-08-28 11:46:59 +0700
committerPierre Joye <pierre.php@gmail.com>2021-08-28 11:46:59 +0700
commit10cd1fdf82a658932bb29f4ba89ab71ba66e93d6 (patch)
tree41c52680715616465d624db01b02f216d829fec1 /tests
parent315624f4250f77c6e10d73c646cf11a5c5fe1ab7 (diff)
downloadlibgd-10cd1fdf82a658932bb29f4ba89ab71ba66e93d6.tar.gz
too early return
Diffstat (limited to 'tests')
-rw-r--r--tests/gdtest/gdtest.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/gdtest/gdtest.c b/tests/gdtest/gdtest.c
index 4fa8f24..8e9d56c 100644
--- a/tests/gdtest/gdtest.c
+++ b/tests/gdtest/gdtest.c
@@ -323,9 +323,7 @@ const char *gdTestTempDir(void)
#else
sprintf(tmpdir, "%s/gdtest.XXXXXX", tmpdir_root);
#endif
- if (gdTestIsDir(tmpdir)) {
- return tmpdir;
- }
+
tmpdir_base = mkdtemp(tmpdir);
if (tmpdir_base == NULL) {
printf("failed to generate the tmp dir path (%s).", tmpdir);