]> sjero.net Git - wget/blobdiff - src/main.c
Define program_name, for lib/error.c.
[wget] / src / main.c
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.  */