summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Bosveld <joel@joel-desktop.(none)>2008-01-23 21:55:38 +0900
committerJoel Bosveld <joel@joel-desktop.(none)>2008-01-23 21:55:38 +0900
commitd3db11d66f28c57b48b6dc5a182a8ed9d956b52a (patch)
treeb4e56cb9e850634b88879a3b7de1684be84d4ccc
parent91e86743ed315e00a007239d4646beb56de06a59 (diff)
downloadcubedbus-d3db11d66f28c57b48b6dc5a182a8ed9d956b52a.tar.gz
cubedbus-d3db11d66f28c57b48b6dc5a182a8ed9d956b52a.tar.bz2
Fixed crash
-rw-r--r--cubedbusModel.c.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/cubedbusModel.c.in b/cubedbusModel.c.in
index 190c5bc..fd150f1 100644
--- a/cubedbusModel.c.in
+++ b/cubedbusModel.c.in
@@ -220,6 +220,7 @@ cubedbusAddModelObject (CubedbusObject *obj, CompOption *option, int nOption)
mtlPtr->next=NULL;
mtlPtr->name=malloc(sizeof(char) * 5);
strcpy (mtlPtr->name, "fake");
+ mtlPtr->tex=NULL;
/* Parse MTL file and load textures */