* environ.cc (build_env): Ensure that win32 array is properly filled in when a
missing value has to be generated.
This commit is contained in:
		| @@ -1,3 +1,8 @@ | |||||||
|  | 2005-04-26  Christopher Faylor  <cgf@timesys.com> | ||||||
|  |  | ||||||
|  | 	* environ.cc (build_env): Ensure that win32 array is properly filled in | ||||||
|  | 	when a missing value has to be generated. | ||||||
|  |  | ||||||
| 2005-04-26  Christopher Faylor  <cgf@timesys.com> | 2005-04-26  Christopher Faylor  <cgf@timesys.com> | ||||||
|  |  | ||||||
| 	* include/cygwin/version.h: Bump DLL minor number to 17. | 	* include/cygwin/version.h: Bump DLL minor number to 17. | ||||||
|   | |||||||
| @@ -980,7 +980,7 @@ build_env (const char * const *envp, char *&envblock, int &envc, | |||||||
| 	  *dstp = spenvs[i].retrieve (no_envblock); | 	  *dstp = spenvs[i].retrieve (no_envblock); | ||||||
| 	  if (*dstp && (!no_envblock || spenvs[i].force) && *dstp != env_dontadd) | 	  if (*dstp && (!no_envblock || spenvs[i].force) && *dstp != env_dontadd) | ||||||
| 	    { | 	    { | ||||||
| 	      *pass_dstp = *dstp; | 	      *pass_dstp++ = *dstp; | ||||||
| 	      tl += strlen (*dstp) + 1; | 	      tl += strlen (*dstp) + 1; | ||||||
| 	      dstp++; | 	      dstp++; | ||||||
| 	    } | 	    } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user