diff options
| author | christos <christos@NetBSD.org> | 2013-11-27 20:34:34 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2013-11-27 20:34:34 +0000 |
| commit | 389c19b689c71fd1e74720976bc9ca5a67e1fcfd (patch) | |
| tree | 91ceadb9309cc77923a96d397e3e071597d8572a | |
| parent | 25d744af0e868f18872ba1a2fbf7fe3cb3fae15e (diff) | |
CID 1132764: Bogus test
| -rw-r--r-- | sbin/gpt/resize.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/gpt/resize.c b/sbin/gpt/resize.c index 8c5aebaff76..3e707c8d51a 100644 --- a/sbin/gpt/resize.c +++ b/sbin/gpt/resize.c @@ -29,7 +29,7 @@ __FBSDID("$FreeBSD: src/sbin/gpt/add.c,v 1.14 2006/06/22 22:05:28 marcel Exp $"); #endif #ifdef __RCSID -__RCSID("$NetBSD: resize.c,v 1.3 2013/11/27 01:47:53 jnemeth Exp $"); +__RCSID("$NetBSD: resize.c,v 1.4 2013/11/27 20:34:34 christos Exp $"); #endif #include <sys/types.h> @@ -118,7 +118,7 @@ resize(int fd) if (entry == map->map_index) break; } - if (entry != map->map_index) { + if (map == NULL) { warnx("%s: error: could not find map entry corresponding " "to index", device_name); return; |
