bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] [Patch] main.c


From: Gisle Vanem
Subject: [Bug-wget] [Patch] main.c
Date: Fri, 27 Feb 2009 18:45:57 +0100

The Wget-patches list seems to have fallen off the net, so I send
you this simple patch directly.


2009-02-27  Gisle Vanem  <address@hidden>

* main.c: "freopen (NULL,.." causes an assertion in MSVC debug-mode. I.e. NULL isn't legal. But the "CONOUT$" device works fine.


--- hg-latest/src/main.c     Thu Feb 26 16:58:03 2009
+++ ./main.c    Fri Feb 27 07:46:13 2009
@@ -1124,7 +1124,7 @@
        {
#ifdef WINDOWS
          FILE *result;
-          result = freopen (NULL, "wb", stdout);
+          result = freopen ("CONOUT$", "wb", stdout);
          if (result == NULL)
            {
              logputs (LOG_NOTQUIET, _("\

--gv




reply via email to

[Prev in Thread] Current Thread [Next in Thread]