=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/asn1_compile/Attic/symbol.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- src/usr.bin/asn1_compile/Attic/symbol.c 2003/05/11 21:36:33 1.1 +++ src/usr.bin/asn1_compile/Attic/symbol.c 2005/05/11 19:45:50 1.2 @@ -82,8 +82,11 @@ s = (Symbol *)hashtabsearch (htab, (void *)&key); if (s == NULL) { s = (Symbol *)malloc (sizeof (*s)); + if (s == NULL) + err(1, NULL); s->name = name; - s->gen_name = strdup(name); + if ((s->gen_name = strdup(name)) == NULL) + err(1, NULL); output_name (s->gen_name); s->stype = SUndefined; hashtabadd (htab, s);