summaryrefslogtreecommitdiffstats
path: root/libiberty/choose-temp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libiberty/choose-temp.c')
-rw-r--r--libiberty/choose-temp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libiberty/choose-temp.c b/libiberty/choose-temp.c
index 0cba9905d5..4a26a827a2 100644
--- a/libiberty/choose-temp.c
+++ b/libiberty/choose-temp.c
@@ -65,8 +65,7 @@ choose_temp_base (void)
strcpy (temp_filename, base);
strcpy (temp_filename + len, TEMP_FILE);
- mktemp (temp_filename);
- if (strlen (temp_filename) == 0)
+ if (mktemp (temp_filename) == 0)
abort ();
return temp_filename;
}
OpenPOWER on IntegriCloud