Initialize pointers
This commit is contained in:
parent
e8f0a68ed8
commit
6270173331
10
parser.c
10
parser.c
@ -44,11 +44,11 @@ static char *read_file(char const * const filename);
|
||||
*/
|
||||
HE_face *parse_obj(char const * const filename)
|
||||
{
|
||||
unsigned int vc;
|
||||
char *string,
|
||||
*str_ptr_space,
|
||||
*str_ptr_newline,
|
||||
*str_tmp_ptr;
|
||||
unsigned int vc, fc;
|
||||
char *string = NULL,
|
||||
*str_ptr_space = NULL,
|
||||
*str_ptr_newline = NULL,
|
||||
*str_tmp_ptr = NULL;
|
||||
const size_t vert_size = sizeof(HE_vert);
|
||||
HE_vert *vertices = malloc(vert_size);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user