Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/gpt CID 1132764: Bogus test



details:   https://anonhg.NetBSD.org/src/rev/381f1cc9ce35
branches:  trunk
changeset: 791666:381f1cc9ce35
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Nov 27 20:34:34 2013 +0000

description:
CID 1132764: Bogus test

diffstat:

 sbin/gpt/resize.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r d67fbbbeb478 -r 381f1cc9ce35 sbin/gpt/resize.c
--- a/sbin/gpt/resize.c Wed Nov 27 20:31:01 2013 +0000
+++ b/sbin/gpt/resize.c Wed Nov 27 20:34:34 2013 +0000
@@ -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 @@
                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;



Home | Main Index | Thread Index | Old Index