26 lines
764 B
Diff
26 lines
764 B
Diff
|
Based on 1cb1767a29458b3d16d6b161b4ee34dd496ff60d Mon Sep 17 00:00:00 2001
|
||
|
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
||
|
Date: Fri, 11 Jul 2014 09:21:15 -0400
|
||
|
Subject: [PATCH] util: fix has cc check and add test
|
||
|
|
||
|
---
|
||
|
src/shared/util.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git src/shared/util.c src/shared/util.c
|
||
|
index 3342798..75dc58b 100644
|
||
|
--- src/shared/util.c
|
||
|
+++ src/shared/util.c
|
||
|
@@ -5419,7 +5419,7 @@ bool string_has_cc(const char *p, const char *ok) {
|
||
|
|
||
|
for (t = p; *t; t++) {
|
||
|
if (ok && strchr(ok, *t))
|
||
|
- return false;
|
||
|
+ continue;
|
||
|
|
||
|
if (*t > 0 && *t < ' ')
|
||
|
return true;
|
||
|
--
|
||
|
1.7.9.2
|
||
|
|