initialize ec->next

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4467 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1998-02-27 04:01:40 +00:00
parent 6d90747939
commit f643be77a4

View File

@@ -111,6 +111,8 @@ statement : INDEX NUMBER
| EC STRING ',' STRING
{
struct error_code *ec = malloc(sizeof(*ec));
ec->next = NULL;
ec->number = number;
if(prefix && *prefix != '\0') {
ec->name = malloc(strlen(prefix) + strlen($2) + 1);