(process_environment): If the environment tag is NULL (which is really
should never be), then don't use it.
This commit is contained in:
parent
cd339f9ddc
commit
2cf6fe3fc7
1 changed files with 1 additions and 1 deletions
|
|
@ -151,7 +151,7 @@ void process_environment(std::list<option_t>& options,
|
|||
int tag_len = tag.length();
|
||||
|
||||
for (char ** p = envp; *p; p++)
|
||||
if (std::strncmp(*p, tag_p, tag_len) == 0) {
|
||||
if (! tag_p || std::strncmp(*p, tag_p, tag_len) == 0) {
|
||||
char buf[128];
|
||||
char * r = buf;
|
||||
char * q;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue