Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions LiE/util/infoind.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ int main(void)
FILE *indexpt,*infopt;
info_index_tp info; /* current info record */

memset(&info, 0, sizeof(info));
strcpy(indexfil,INDEXFIL);
indexpt=fopen(indexfil,writemode);
if (indexpt==NULL)
Expand Down
1 change: 1 addition & 0 deletions LiE/util/learnind.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ int main(void)
FILE *indexpt,*learnpt;
learn_index_tp learn;

memset(&learn, 0, sizeof(learn));
strcpy(indexfil,INDEXFIL); strcpy(learnfil,LEARNFIL);
learnpt=fopen(learnfil,readmode);
if (learnpt==NULL)
Expand Down