From: Justin Seyster Date: Fri, 3 Sep 2010 00:01:48 +0000 (-0400) Subject: Turns out you're supposed to NULL terminate linked lists. X-Git-Tag: release-v1.0~48^2~12 X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=dbddb9970ef54cd2b8cc76051dab9eb2b53c863b;p=interaspect.git Turns out you're supposed to NULL terminate linked lists. --- diff --git a/src/aop-header.c b/src/aop-header.c index 7ab4164..3e721a6 100644 --- a/src/aop-header.c +++ b/src/aop-header.c @@ -235,6 +235,7 @@ insert_prototype (bool has_return_value, const char *name, int num_params, prototype = xmalloc (sizeof (struct aop_prototype) + param_types_size); *hash_slot = prototype; + prototype->next = NULL; prototype->has_return_value = has_return_value; prototype->name = xstrdup (name); prototype->num_params = num_params;