summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-30 11:47:44 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-30 11:47:44 +0000
commit1fb9bbde9209153b72e205e9961476641f5d87ce (patch)
treeb054bd10a51659bb3b2dd3d8cd602b298212723c
parentd767ea8dca6d98f405dc7525a38d5a6d61b3652f (diff)
downloadmandoc-1fb9bbde9209153b72e205e9961476641f5d87ce.tar.gz
Make check for case a little more intuitive (suggested by joerg@).
-rw-r--r--mdoc_validate.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index 30d7ea8d..ce90c0f3 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -747,9 +747,7 @@ post_dt(POST_ARGS)
if (NULL != (nn = mdoc->last->child))
for (p = nn->string; *p; p++) {
- if ( ! isalpha((u_char)*p))
- continue;
- if (isupper((u_char)*p))
+ if (toupper((u_char)*p) == *p)
continue;
if ( ! mdoc_nmsg(mdoc, nn, MANDOCERR_UPPERCASE))
return(0);