summaryrefslogtreecommitdiffstats
path: root/sbin/routed/rtquery
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1998-07-22 05:49:36 +0000
committerphk <phk@FreeBSD.org>1998-07-22 05:49:36 +0000
commiteb2700b9adc82071e3f475ef4b7fff1791dd2c6f (patch)
tree001a5be02a73995ae15869298e1e7ec63ecc2a16 /sbin/routed/rtquery
parent7ebd4f74fbc6a8f7433b4480b4e1983271902485 (diff)
downloadFreeBSD-src-eb2700b9adc82071e3f475ef4b7fff1791dd2c6f.zip
FreeBSD-src-eb2700b9adc82071e3f475ef4b7fff1791dd2c6f.tar.gz
/usr/src/sbin/routed/parms.c and .../routed/rtquery/rtquery.c both
contain code that compare a char pointer with a char. As this doesn't make much sense, it looks very much as if a '*' has been dropped by mistake. I have made no analysis of the possible consequences of the problem. PR: 7319 Reviewed by: phk Submitted by: Anders Thulin <Anders.X.Thulin@telia.se>
Diffstat (limited to 'sbin/routed/rtquery')
-rw-r--r--sbin/routed/rtquery/rtquery.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/routed/rtquery/rtquery.c b/sbin/routed/rtquery/rtquery.c
index 7f29605..783c561 100644
--- a/sbin/routed/rtquery/rtquery.c
+++ b/sbin/routed/rtquery/rtquery.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)query.c 8.1 (Berkeley) 6/5/93";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: rtquery.c,v 1.7 1998/01/14 07:17:12 charnier Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -797,7 +797,7 @@ parse_quote(char **linep,
if (c == '\0')
break;
- if (c == '\\' && pc != '\0') {
+ if (c == '\\' && *pc != '\0') {
if ((c = *pc++) == 'n') {
c = '\n';
} else if (c == 'r') {
OpenPOWER on IntegriCloud