Make valgrind happy

This commit is contained in:
2014-05-07 21:09:04 +02:00
parent c3b05f8cf9
commit e8f0a68ed8

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