Module Name: src
Committed By: christos
Date: Sun Dec 13 19:38:09 UTC 2015
Modified Files:
src/sys/arch/bebox/bebox: autoconf.c
Log Message:
PR/50524: David Binderman: Fix incorrect test
To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/bebox/bebox/autoconf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/bebox/bebox/autoconf.c
diff -u src/sys/arch/bebox/bebox/autoconf.c:1.26 src/sys/arch/bebox/bebox/autoconf.c:1.27
--- src/sys/arch/bebox/bebox/autoconf.c:1.26 Wed Dec 19 08:53:47 2012
+++ src/sys/arch/bebox/bebox/autoconf.c Sun Dec 13 14:38:09 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.26 2012/12/19 13:53:47 kiyohara Exp $ */
+/* $NetBSD: autoconf.c,v 1.27 2015/12/13 19:38:09 christos Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -44,7 +44,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.26 2012/12/19 13:53:47 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.27 2015/12/13 19:38:09 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -162,7 +162,7 @@ findroot(void)
return;
p += 2;
part = (*p++) - '0';
- if (p != '\0')
+ if (*p != '\0')
return;
booted_partition = part;