Make valgrind happy

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

View File

@ -53,7 +53,8 @@ HE_face *parse_obj(char const * const filename)
HE_vert *vertices = malloc(vert_size);
/* read the whole file into string */
if (!filename || !*filename || !(string = read_file(filename)))
string = read_file(filename);
if (!filename || !*filename || !string || !*string)
return NULL;
printf("file content\n%s\n\n", string);