Skip to content

Commit

Permalink
fix Issue 14634 - dmd crashes without any input
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Jun 1, 2015
1 parent f4f461d commit ec2de31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inifile.c
Expand Up @@ -139,7 +139,7 @@ static void writeToEnv(StringTable *environment, char *nameEqValue)
{
char *p = strchr(nameEqValue, '=');
assert(p);
StringValue *sv = environment->insert(nameEqValue, p - nameEqValue);
StringValue *sv = environment->update(nameEqValue, p - nameEqValue);
sv->ptrvalue = (void *)(p + 1);
}

Expand Down

0 comments on commit ec2de31

Please sign in to comment.