diff options
| -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; |
