Skip to content

Commit

Permalink
Merge pull request #4702 from WalterBright/fix14634
Browse files Browse the repository at this point in the history
fix Issue 14634 - dmd crashes without any input
  • Loading branch information
andralex committed Jun 1, 2015
2 parents f4f461d + ec2de31 commit 2f4e62e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inifile.c
Original file line number Diff line number Diff line change
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 2f4e62e

Please sign in to comment.