diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2011-04-10 10:06:10 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2011-04-10 10:06:10 +0000 |
commit | 7e9fc2894839bfba9c526ea573130ac0f2e75844 (patch) | |
tree | a4d9131206d82ab42c56a07022a1de8df4e263d0 | |
parent | ee3f75b1a46e224d270f9cb8b024329cb1eba10a (diff) |
NULL -> 0
-rw-r--r-- | sys/arch/sparc64/stand/installboot/installboot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/stand/installboot/installboot.c b/sys/arch/sparc64/stand/installboot/installboot.c index bbfeb35d493..5ea0fe27042 100644 --- a/sys/arch/sparc64/stand/installboot/installboot.c +++ b/sys/arch/sparc64/stand/installboot/installboot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: installboot.c,v 1.10 2011/03/13 00:13:53 deraadt Exp $ */ +/* $OpenBSD: installboot.c,v 1.11 2011/04/10 10:06:09 miod Exp $ */ /* $NetBSD: installboot.c,v 1.8 2001/02/19 22:48:59 cgd Exp $ */ /*- @@ -270,7 +270,7 @@ loadprotoblocks(fname, size) st = marks[MARK_START]; en = marks[MARK_ENTRY]; - if ((ap = (u_long)malloc(sz)) == NULL) { + if ((ap = (u_long)malloc(sz)) == 0) { warn("malloc: %s", ""); return NULL; } |