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 authored and WalterBright committed Jun 1, 2015
1 parent 7ed69f4 commit f2a212a
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 @@ -142,7 +142,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 f2a212a

Please sign in to comment.