diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2002-08-12 00:42:57 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2002-08-12 00:42:57 +0000 |
commit | 87ffdf06b6ecc46b38ca953419304b64e37c7c95 (patch) | |
tree | 9e44c0b5a073ee17b9d7d3da181c696f012c6248 /usr.bin/mail/vars.c | |
parent | 941ec3d1051d178a11f6baa72a3d520413033f2e (diff) |
Swap args to calloc(3) so they are in the correct order; art@ ok.
Diffstat (limited to 'usr.bin/mail/vars.c')
-rw-r--r-- | usr.bin/mail/vars.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mail/vars.c b/usr.bin/mail/vars.c index e79ceda8099..9237583df1e 100644 --- a/usr.bin/mail/vars.c +++ b/usr.bin/mail/vars.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vars.c,v 1.8 2001/11/21 20:41:56 millert Exp $ */ +/* $OpenBSD: vars.c,v 1.9 2002/08/12 00:42:56 aaron Exp $ */ /* $NetBSD: vars.c,v 1.4 1996/06/08 19:48:45 christos Exp $ */ /* @@ -38,7 +38,7 @@ #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 $"; +static const char rcsid[] = "$OpenBSD: vars.c,v 1.9 2002/08/12 00:42:56 aaron Exp $"; #endif #endif /* not lint */ @@ -63,7 +63,7 @@ assign(char *name, char *value) h = hash(name); vp = lookup(name); if (vp == NULL) { - if ((vp = (struct var *)calloc(sizeof(*vp), 1)) == NULL) + if ((vp = (struct var *)calloc(1, sizeof(*vp))) == NULL) errx(1, "Out of memory"); vp->v_name = vcopy(name); vp->v_link = variables[h]; |