mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Define program_name, for lib/error.c.
This commit is contained in:
parent
3516195389
commit
abeb6c4a9e
@ -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
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user