Skip to content
Permalink
Browse files Browse the repository at this point in the history
Avoid uninitialized memory
  • Loading branch information
tbeu committed Aug 30, 2019
1 parent 69f7141 commit 651a8e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mat4.c
Expand Up @@ -917,6 +917,8 @@ Mat_VarReadNextInfo4(mat_t *mat)
if ( tmp != readresult ) {
Mat_VarFree(matvar);
return NULL;
} else {
matvar->name[tmp - 1] = '\0';
}

matvar->internal->datapos = ftell((FILE*)mat->fp);
Expand Down

0 comments on commit 651a8e2

Please sign in to comment.