]> sjero.net Git - wget/commitdiff
Define program_name, for lib/error.c.
authorMicah Cowan <micah@cowan.name>
Tue, 9 Sep 2008 16:40:13 +0000 (09:40 -0700)
committerMicah Cowan <micah@cowan.name>
Tue, 9 Sep 2008 16:40:13 +0000 (09:40 -0700)
src/ChangeLog
src/main.c

index 9aab3a4b67bdcd4c850e8d7eb976f1ec94a38e00..015be198c422a28ba10f2399bd014986df35e845 100644 (file)
@@ -1,3 +1,7 @@
+2008-09-09  Micah Cowan  <micah@cowan.name>
+
+       * main.c: Define program_name for lib/error.c.
+
 2008-09-02  Gisle Vanem  <gvanem@broadpark.no>
 
        * mswindows.h: Must ensure <stdio.h> is included before
index 3896afd005a349d5f190e8b50ed93bf8572adce1..b30fc3f2d9ab97104073deedb2282a7bfaed82b1 100644 (file)
@@ -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.  */