summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>2000-07-09 01:52:17 +0000
committermycroft <mycroft@NetBSD.org>2000-07-09 01:52:17 +0000
commit39ff4faf53bec00cb203875bb6ef453cdecb95ff (patch)
treecc212ac6eb637324a943596dd84edf09ea974ce9 /sys
parent9ad7bd8d377d41fafd9b509a0a10f9767ec8cce5 (diff)
Fix compiler warning.
Diffstat (limited to 'sys')
-rw-r--r--sys/ddb/db_expr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ddb/db_expr.c b/sys/ddb/db_expr.c
index 5358a13dc11..c1b82196225 100644
--- a/sys/ddb/db_expr.c
+++ b/sys/ddb/db_expr.c
@@ -1,4 +1,4 @@
-/* $NetBSD: db_expr.c,v 1.10 2000/07/08 21:35:32 eeh Exp $ */
+/* $NetBSD: db_expr.c,v 1.11 2000/07/09 01:52:17 mycroft Exp $ */
/*
* Mach Operating System
@@ -55,7 +55,7 @@ db_term(valuep)
int i, c, byte;
/* See if we can make a number out of all of it */
- for (i=0; c = db_tok_string[i]; i++) {
+ for (i = 0; (c = db_tok_string[i]) != '\0'; i++) {
byte = 0;
if (c >= '0' && c <= '9')
byte = c - '0';