[Toybox] [PATCH 2/2] Fix a segfault due to a wrong order global variables of wget

Moritz C. Weber mo.c.weber at gmail.com
Tue Mar 29 06:10:00 PDT 2022


---
 toys/pending/wget.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/toys/pending/wget.c b/toys/pending/wget.c
index de8a117f..03f98754 100644
--- a/toys/pending/wget.c
+++ b/toys/pending/wget.c
@@ -77,8 +77,8 @@ config WGET_OPENSSL
 #define WGET_IS_HTTPS (WGET_SSL && (strncmp(TT.url, "https://", 8) == 0))
 
 GLOBALS(
-  char *O;
   char *postdata;
+  char *O;
   long max_redirect;
 
   int sock;
-- 
2.20.1



More information about the Toybox mailing list