summaryrefslogtreecommitdiff
path: root/sed/sed.c
diff options
context:
space:
mode:
Diffstat (limited to 'sed/sed.c')
-rw-r--r--sed/sed.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sed/sed.c b/sed/sed.c
index 9c2f034..178d2cf 100644
--- a/sed/sed.c
+++ b/sed/sed.c
@@ -59,6 +59,8 @@
# define ATOI(x) strtoul(x, NULL, 0)
#endif
+char *program_name;
+
int extended_regexp_flags = 0;
/* If set, fflush(stdout) on every line output. */
@@ -178,6 +180,7 @@ main(argc, argv)
int return_code;
const char *cols = getenv("COLS");
+ program_name = argv[0];
initialize_main (&argc, &argv);
#if HAVE_SETLOCALE
/* Set locale according to user's wishes. */