aboutsummaryrefslogtreecommitdiff
path: root/src/ClientPattern.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ClientPattern.cc')
-rw-r--r--src/ClientPattern.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ClientPattern.cc b/src/ClientPattern.cc
index 9b1c4e3..38d1602 100644
--- a/src/ClientPattern.cc
+++ b/src/ClientPattern.cc
@@ -137,10 +137,11 @@ ClientPattern::ClientPattern(const char *str):
137 137
138 // there shouldn't be anything else on the line 138 // there shouldn't be anything else on the line
139 match = str + pos; 139 match = str + pos;
140 err = match.find_first_not_of(" \t\n", pos); 140 size_t uerr;// need a special type here
141 if ((unsigned) err != match.npos) { 141 uerr = match.find_first_not_of(" \t\n", pos);
142 if (uerr != match.npos) {
142 // found something, not good 143 // found something, not good
143 had_error = err; 144 had_error++;
144 } 145 }
145 } 146 }
146 147