From abeb6c4a9e8ede91354b6768628860638b98796f Mon Sep 17 00:00:00 2001 From: Micah Cowan Date: Tue, 9 Sep 2008 09:40:13 -0700 Subject: [PATCH] Define program_name, for lib/error.c. --- src/ChangeLog | 4 ++++ src/main.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 9aab3a4b..015be198 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-09-09 Micah Cowan + + * main.c: Define program_name for lib/error.c. + 2008-09-02 Gisle Vanem * mswindows.h: Must ensure is included before diff --git a/src/main.c b/src/main.c index 3896afd0..b30fc3f2 100644 --- a/src/main.c +++ b/src/main.c @@ -826,6 +826,8 @@ There is NO WARRANTY, to the extent permitted by law.\n"), stdout); exit (0); } +char *program_name; /* Needed by lib/error.c. */ + int main (int argc, char **argv) { @@ -834,6 +836,8 @@ main (int argc, char **argv) int nurl, status; bool append_to_log = false; + program_name = argv[0]; + i18n_initialize (); /* Construct the name of the executable, without the directory part. */ -- 2.39.2