summaryrefslogtreecommitdiff
path: root/sed/sed.c
diff options
context:
space:
mode:
Diffstat (limited to 'sed/sed.c')
-rw-r--r--sed/sed.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sed/sed.c b/sed/sed.c
index 511f03a..71713ac 100644
--- a/sed/sed.c
+++ b/sed/sed.c
@@ -26,6 +26,7 @@
#include <stdlib.h>
#include <sys/types.h>
#include "getopt.h"
+#include "progname.h"
#include "version-etc.h"
@@ -35,8 +36,6 @@
_("Ken Pizzini"), \
_("Paolo Bonzini")
-char *program_name;
-
int extended_regexp_flags = 0;
/* one-byte buffer delimiter */
@@ -200,6 +199,7 @@ main(argc, argv)
/* Set locale according to user's wishes. */
setlocale (LC_ALL, "");
#endif
+ set_program_name (argv[0]);
initialize_mbcs ();
#if ENABLE_NLS