summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bf.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/bf.c b/bf.c
index 1903c38..f15d3fc 100644
--- a/bf.c
+++ b/bf.c
@@ -35,13 +35,9 @@ alloccell(void)
{
Cell *c;
- c = malloc(sizeof(Cell));
+ c = calloc(1, sizeof(Cell));
assert(c);
- c->value = 0;
- c->next = NULL;
- c->prev = NULL;
-
return c;
}