summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-11-15 06:08:32 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-11-15 06:08:32 +0000
commit19713aecd94bdccec26003f193cc82be3dd363c0 (patch)
tree37944f77d925f40586ad525eb9e3ba57616dac09
parentb355932f23db8b414d7b9977b7aa68d2b8b12522 (diff)
Missed one place to check for bpp == NULL
-rw-r--r--sys/ufs/ffs/ffs_alloc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c
index 2346d24d16b..7c2870fed77 100644
--- a/sys/ufs/ffs/ffs_alloc.c
+++ b/sys/ufs/ffs/ffs_alloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_alloc.c,v 1.33 2001/11/13 00:10:56 art Exp $ */
+/* $OpenBSD: ffs_alloc.c,v 1.34 2001/11/15 06:08:31 art Exp $ */
/* $NetBSD: ffs_alloc.c,v 1.11 1996/05/11 18:27:09 mycroft Exp $ */
/*
@@ -176,7 +176,8 @@ ffs_realloccg(ip, lbprev, bpref, osize, nsize, cred, bpp, blknop)
int cg, request, error;
daddr_t bprev, bno;
- *bpp = 0;
+ if (bpp != NULL)
+ *bpp = NULL;
fs = ip->i_fs;
#ifdef DIAGNOSTIC
if ((u_int)osize > fs->fs_bsize || fragoff(fs, osize) != 0 ||