Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/fsck_ext2fs e2di_block is an array; can't be NULL, (clang)
details: https://anonhg.NetBSD.org/src/rev/b06401c7ac91
branches: trunk
changeset: 353140:b06401c7ac91
user: christos <christos%NetBSD.org@localhost>
date: Fri Apr 21 17:33:04 2017 +0000
description:
e2di_block is an array; can't be NULL, (clang)
diffstat:
sbin/fsck_ext2fs/pass1.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 82115e7bf3b8 -r b06401c7ac91 sbin/fsck_ext2fs/pass1.c
--- a/sbin/fsck_ext2fs/pass1.c Fri Apr 21 15:29:41 2017 +0000
+++ b/sbin/fsck_ext2fs/pass1.c Fri Apr 21 17:33:04 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pass1.c,v 1.24 2013/06/19 17:51:25 dholland Exp $ */
+/* $NetBSD: pass1.c,v 1.25 2017/04/21 17:33:04 christos Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@@ -58,7 +58,7 @@
#if 0
static char sccsid[] = "@(#)pass1.c 8.1 (Berkeley) 6/5/93";
#else
-__RCSID("$NetBSD: pass1.c,v 1.24 2013/06/19 17:51:25 dholland Exp $");
+__RCSID("$NetBSD: pass1.c,v 1.25 2017/04/21 17:33:04 christos Exp $");
#endif
#endif /* not lint */
@@ -239,7 +239,7 @@
* will detect any garbage after symlink string.
*/
if (inosize(dp) < EXT2_MAXSYMLINKLEN ||
- (EXT2_MAXSYMLINKLEN == 0 && dp->e2di_blocks == 0)) {
+ EXT2_MAXSYMLINKLEN == 0) {
ndb = howmany(inosize(dp), sizeof(u_int32_t));
if (ndb > EXT2FS_NDADDR) {
j = ndb - EXT2FS_NDADDR;
Home |
Main Index |
Thread Index |
Old Index