comparison field.cc @ 143:be127b7d1812

minor fix
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 23 Jul 2011 10:18:28 +0900 (2011-07-23)
parents 8ac08eda80ac
children d1ddd095ab03
comparison
equal deleted inserted replaced
142:8ac08eda80ac 143:be127b7d1812
75 if (malloc_align16(&free_addr, &self, sizeof(Field)) == -1 ) { 75 if (malloc_align16(&free_addr, &self, sizeof(Field)) == -1 ) {
76 fprintf(stderr, "field.c: malloc_align16 error\n"); 76 fprintf(stderr, "field.c: malloc_align16 error\n");
77 fflush(stderr); 77 fflush(stderr);
78 exit(EXIT_FAILURE); 78 exit(EXIT_FAILURE);
79 } 79 }
80 memset(self, 0, sizeof(Field));
80 81
81 self->object = obj; 82 self->object = obj;
82 self->next = NULL; 83 self->next = NULL;
83 self->prev = NULL; 84 self->prev = NULL;
84 self->free_addr = free_addr; 85 self->free_addr = free_addr;