summaryrefslogtreecommitdiff
path: root/texture.c
diff options
context:
space:
mode:
Diffstat (limited to 'texture.c')
-rw-r--r--texture.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/texture.c b/texture.c
index 260c12e..97d2065 100644
--- a/texture.c
+++ b/texture.c
@@ -124,6 +124,7 @@ alloctexture(int type, Memimage *i)
Texture *t;
t = emalloc(sizeof *t);
+ memset(t, 0, sizeof *t);
t->image = i;
t->type = type;
return t;