1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Now --version works again.

This commit is contained in:
Mojca Miklavec 2011-09-02 13:37:10 +02:00 committed by Giuseppe Scrivano
parent 0f154e42a4
commit a25607f788
3 changed files with 9 additions and 1 deletions

4
NEWS
View File

@ -5,6 +5,10 @@ Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
See the end for copying conditions.
Please send GNU Wget bug reports to <bug-wget@gnu.org>.
* Changes in Wget X.Y.Z
** Now --version works again.
* Changes in Wget 1.13.3

View File

@ -1,3 +1,7 @@
2011-09-02 Mojca Miklavec <mojca.miklavec.lists@gmail.com> (tiny change)
* main.c (print_version): Do not exit prematurely when --version is passed.
2011-08-30 Giuseppe Scrivano <gscrivano@gnu.org>
* gnutls.c (wgnutls_read_timeout): Use the non blocking socket only for

View File

@ -824,7 +824,7 @@ print_version (void)
int line_length = MAX_CHARS_PER_LINE;
while ((line_length > 0) && (compiled_features[i] != NULL))
{
if (printf ("%s ", compiled_features[i]))
if (printf ("%s ", compiled_features[i]) < 0)
exit (3);
line_length -= strlen (compiled_features[i]) + 2;
i++;