Source-Changes-HG archive

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

[src/trunk]: src/sbin/veriexecctl Don't access a NULL pointer.



details:   https://anonhg.NetBSD.org/src/rev/37f4857bfc23
branches:  trunk
changeset: 581134:37f4857bfc23
user:      elad <elad%NetBSD.org@localhost>
date:      Fri May 27 15:46:23 2005 +0000

description:
Don't access a NULL pointer.

diffstat:

 sbin/veriexecctl/veriexecctl_parse.y |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 9f9f38776b3a -r 37f4857bfc23 sbin/veriexecctl/veriexecctl_parse.y
--- a/sbin/veriexecctl/veriexecctl_parse.y      Fri May 27 15:34:16 2005 +0000
+++ b/sbin/veriexecctl/veriexecctl_parse.y      Fri May 27 15:46:23 2005 +0000
@@ -1,5 +1,5 @@
 %{
-/*     $NetBSD: veriexecctl_parse.y,v 1.8 2005/05/20 20:06:34 elad Exp $       */
+/*     $NetBSD: veriexecctl_parse.y,v 1.9 2005/05/27 15:46:23 elad Exp $       */
 
 /*-
  * Copyright 2005 Elad Efrat <elad%bsd.org.il@localhost>
@@ -84,7 +84,7 @@
                goto phase_2_end;
        }
 
-       if ((p = dev_lookup(sb.st_dev)) == NULL) {
+       if ((p = dev_lookup(sb.st_dev)) != NULL) {
            (p->vu_param.hash_size)++;
            goto phase_2_end;
        }



Home | Main Index | Thread Index | Old Index