commit | 67852f98f7a6389c332f6b4b362a626c6d7a5355 | [log] [tgz] |
---|---|---|
author | vlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826> | Thu Aug 19 13:45:27 2004 +0000 |
committer | vlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826> | Thu Aug 19 13:45:27 2004 +0000 |
tree | c9d170441e2a38f5f6c9cd133975a69b296524a5 | |
parent | 7ce9add9f72d4b561360480de1f1f7edc8366997 [diff] [blame] |
oops git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@156 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/libasn1compiler/asn1c_fdeps.c b/libasn1compiler/asn1c_fdeps.c index cb53b3c..68a090d 100644 --- a/libasn1compiler/asn1c_fdeps.c +++ b/libasn1compiler/asn1c_fdeps.c
@@ -136,8 +136,9 @@ } if(deps->el_count == deps->el_size) { + void *p; n = deps->el_size?deps->el_size << 2:16; - void *p = realloc(deps->elements, + p = realloc(deps->elements, n * sizeof(deps->elements[0])); assert(p); deps->elements = p;