delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2007/05/17/07:00:02

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Authenticated: #27081556
X-Provags-ID: V01U2FsdGVkX19eqyx604Reg6C5REdTxNwQzLDy3yea/w+pWySwMv
4kjSXXAYjRcGum
From: Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de>
To: djgpp-workers AT delorie DOT com
Subject: sane initialization default for certain variables in v2load.c
Date: Thu, 17 May 2007 13:23:04 +0200
User-Agent: KMail/1.8.2
MIME-Version: 1.0
Message-Id: <200705171323.04112.juan.guerrero@gmx.de>
X-Y-GMX-Trusted: 0
Reply-To: djgpp-workers AT delorie DOT com

	* src/debug/common/v2load.c: Initialize proxy_argc and tbuf to a sane
	default.

Regards,
Juan M. Guerrero


diff -aprNU5 djgpp.orig/src/debug/common/v2load.c djgpp/src/debug/common/v2load.c
--- djgpp.orig/src/debug/common/v2load.c	2003-05-10 15:26:10 +0000
+++ djgpp/src/debug/common/v2load.c	2007-05-16 16:15:30 +0000
@@ -185,13 +185,13 @@ int v2loadimage(const char *program, con
   unsigned data_soffset, data_size, bss_soffset, bss_size;
   unsigned client_cs, client_ds, my_ds;
   __dpmi_meminfo memblock;
   unsigned new_env_selector;
   char true_name[FILENAME_MAX];
-  size_t proxy_argc;
+  size_t proxy_argc = 0;
   int proxy_mode;
-  unsigned long tbuf;
+  unsigned long tbuf = 0;
   size_t tbuf_len;
 
   _truename(program, true_name);
 
   pf = open(program, O_RDONLY|O_BINARY);

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019