=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mail/vars.c,v retrieving revision 1.7 retrieving revision 1.8 diff -c -r1.7 -r1.8 *** src/usr.bin/mail/vars.c 2001/11/21 15:26:39 1.7 --- src/usr.bin/mail/vars.c 2001/11/21 20:41:56 1.8 *************** *** 1,4 **** ! /* $OpenBSD: vars.c,v 1.7 2001/11/21 15:26:39 millert Exp $ */ /* $NetBSD: vars.c,v 1.4 1996/06/08 19:48:45 christos Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: vars.c,v 1.8 2001/11/21 20:41:56 millert Exp $ */ /* $NetBSD: vars.c,v 1.4 1996/06/08 19:48:45 christos Exp $ */ /* *************** *** 38,44 **** #if 0 static const char sccsid[] = "@(#)vars.c 8.1 (Berkeley) 6/6/93"; #else ! static const char rcsid[] = "$OpenBSD: vars.c,v 1.7 2001/11/21 15:26:39 millert Exp $"; #endif #endif /* not lint */ --- 38,44 ---- #if 0 static const char sccsid[] = "@(#)vars.c 8.1 (Berkeley) 6/6/93"; #else ! static const char rcsid[] = "$OpenBSD: vars.c,v 1.8 2001/11/21 20:41:56 millert Exp $"; #endif #endif /* not lint */ *************** *** 63,69 **** h = hash(name); vp = lookup(name); if (vp == NULL) { ! vp = (struct var *)calloc(sizeof(*vp), 1); vp->v_name = vcopy(name); vp->v_link = variables[h]; variables[h] = vp; --- 63,70 ---- h = hash(name); vp = lookup(name); if (vp == NULL) { ! if ((vp = (struct var *)calloc(sizeof(*vp), 1)) == NULL) ! errx(1, "Out of memory"); vp->v_name = vcopy(name); vp->v_link = variables[h]; variables[h] = vp;