summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/client.c
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2007-10-07 18:12:49 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2007-10-07 18:12:49 +0000
commit3364944d2c95d6ea00a27c1b134dff3002007a3d (patch)
treee7404c3613d40c350632992dc7fb2f8563ee9fe7 /usr.bin/cvs/client.c
parent4cb057bd29b66597f6c3cfe931db4d65ae94ed2a (diff)
nb is an int, so it should be compared to an int.
ok ray@
Diffstat (limited to 'usr.bin/cvs/client.c')
-rw-r--r--usr.bin/cvs/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/client.c b/usr.bin/cvs/client.c
index 237bd6034f9..701ecefa7a7 100644
--- a/usr.bin/cvs/client.c
+++ b/usr.bin/cvs/client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.c,v 1.81 2007/09/22 15:30:29 tobias Exp $ */
+/* $OpenBSD: client.c,v 1.82 2007/10/07 18:12:48 chl Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -413,7 +413,7 @@ cvs_client_senddir(const char *dir)
if (tag != NULL || date != NULL) {
char buf[128];
- if (tag != NULL && nb != NULL) {
+ if (tag != NULL && nb != 0) {
if (strlcpy(buf, "N", sizeof(buf)) >= sizeof(buf))
fatal("cvs_client_senddir: truncation");
} else if (tag != NULL) {