summaryrefslogtreecommitdiff
path: root/usr.bin/sort/sort.c
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2015-04-02 20:57:35 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2015-04-02 20:57:35 +0000
commit770677ed85fe7cf50a5fd4f7e53ff36a87a403ae (patch)
tree91a159a9710537b0135320d191dc47fd915c5887 /usr.bin/sort/sort.c
parent4a19291801e8fbf80b6361b94c68307792faf0b9 (diff)
No need to strdup environment variable or command line arguments here.
ok millert@
Diffstat (limited to 'usr.bin/sort/sort.c')
-rw-r--r--usr.bin/sort/sort.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/sort/sort.c b/usr.bin/sort/sort.c
index 00536e07428..90c8457ea62 100644
--- a/usr.bin/sort/sort.c
+++ b/usr.bin/sort/sort.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sort.c,v 1.70 2015/04/02 20:56:00 tobias Exp $ */
+/* $OpenBSD: sort.c,v 1.71 2015/04/02 20:57:34 tobias Exp $ */
/*-
* Copyright (C) 2009 Gabor Kovesdan <gabor@FreeBSD.org>
@@ -302,7 +302,7 @@ set_tmpdir(void)
td = getenv("TMPDIR");
if (td != NULL)
- tmpdir = sort_strdup(td);
+ tmpdir = td;
}
}
@@ -925,7 +925,7 @@ main(int argc, char *argv[])
parse_memory_buffer_value(optarg);
break;
case 'T':
- tmpdir = sort_strdup(optarg);
+ tmpdir = optarg;
break;
case 't':
while (strlen(optarg) > 1) {
@@ -993,10 +993,10 @@ main(int argc, char *argv[])
sort_opts_vals.sort_method = SORT_RADIXSORT;
break;
case RANDOMSOURCE_OPT:
- random_source = strdup(optarg);
+ random_source = optarg;
break;
case COMPRESSPROGRAM_OPT:
- compress_program = strdup(optarg);
+ compress_program = optarg;
break;
case FF_OPT:
read_fns_from_file0(optarg);