From: Michael Beck Date: Thu, 1 Feb 2007 14:54:30 +0000 (+0000) Subject: fixed missing sizeof ... X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=ecd0efd1b5c545e230d6c65881b7694fd7892068;p=libfirm fixed missing sizeof ... [r8580] --- diff --git a/ir/adt/plist.c b/ir/adt/plist.c index dc9ae7a28..4fbe0f6ee 100644 --- a/ir/adt/plist.c +++ b/ir/adt/plist.c @@ -37,7 +37,7 @@ static plist_element_t *allocate_element(plist_t* list) { } plist_t *plist_new(void) { - plist_t *list = xmalloc(sizeof(*list)); + plist_t *list = xmalloc(sizeof(*list) + sizeof(*list->obst)); list->obst = (struct obstack *)&list[1]; list->foreign_obstack = 0;