summaryrefslogtreecommitdiff
path: root/src/mktemp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mktemp.c')
-rw-r--r--src/mktemp.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mktemp.c b/src/mktemp.c
index 114fdc2b1..8a09231f9 100644
--- a/src/mktemp.c
+++ b/src/mktemp.c
@@ -35,9 +35,6 @@
static const char *default_template = "tmp.XXXXXXXXXX";
-/* The name this program was run with. */
-char const *program_name;
-
/* For long options that have no equivalent short option, use a
non-character as a pseudo short option, starting with CHAR_MAX + 1. */
enum
@@ -144,7 +141,7 @@ main (int argc, char **argv)
char *dest_name;
initialize_main (&argc, &argv);
- program_name = argv[0];
+ set_program_name (argv[0]);
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);