Initialize pointers

This commit is contained in:
hasufell 2014-05-07 21:09:32 +02:00
parent e8f0a68ed8
commit 6270173331
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
1 changed files with 5 additions and 5 deletions

View File

@ -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);