* mdocml: Lint catching some potential issues.
@ 2011-04-09 15:35 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-04-09 15:35 UTC (permalink / raw)
To: source
Log Message:
-----------
Lint catching some potential issues.
Modified Files:
--------------
mdocml:
mandoc.c
Revision Data
-------------
Index: mandoc.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandoc.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -Lmandoc.c -Lmandoc.c -u -p -r1.45 -r1.46
--- mandoc.c
+++ mandoc.c
@@ -116,10 +116,9 @@ mandoc_escape(const char **end, const ch
rstart = cp;
if (start)
*start = rstart;
- i = 0;
+ i = lim = 0;
gly = ESCAPE_ERROR;
- term = '\0';
- numeric = 0;
+ term = numeric = '\0';
switch ((c = cp[i++])) {
/*
@@ -379,6 +378,7 @@ out:
gly = ESCAPE_FONTROMAN;
break;
}
+ break;
case (ESCAPE_SPECIAL):
if (1 != rlim)
break;
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-04-09 15:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-09 15:35 mdocml: Lint catching some potential issues kristaps
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).