mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-18 05:28:06 +01:00
Fixed freeing of nulls in ibt.c --Rumble
This commit is contained in:
parent
847ac6b500
commit
113d06b6f7
14 changed files with 245 additions and 215 deletions
|
|
@ -173,8 +173,8 @@ static IBT_DATA *read_ibt( char *filename, FILE *fp )
|
|||
break;
|
||||
|
||||
case 'N':
|
||||
if (!str_cmp(word, "Name")) STRFREE(ibtData->name);
|
||||
if (!str_cmp(word, "Notes")) STRFREE(ibtData->notes);
|
||||
if (!str_cmp(word, "Name") && ibtData->name) STRFREE(ibtData->name);
|
||||
if (!str_cmp(word, "Notes") && ibtData->notes) STRFREE(ibtData->notes);
|
||||
TXT_KEY("Name", ibtData->name, fread_line( fp ));
|
||||
KEY("Notes", ibtData->notes, fread_string( fp, buf ));
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue