]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Pascal Grudler <pascal.grudler@ledl.com>:
authorwessels <>
Mon, 17 Apr 2000 23:24:57 +0000 (23:24 +0000)
committerwessels <>
Mon, 17 Apr 2000 23:24:57 +0000 (23:24 +0000)
 - strpbrk might be more efficient than strcsnp+strlen;

src/tools.cc

index fb7d384b85f8e08c932d5ca8153d0ae721f697fc..0a3a94bf7557e2f9b62fd63a52489d785ad833f0 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: tools.cc,v 1.189 2000/03/06 16:23:36 wessels Exp $
+ * $Id: tools.cc,v 1.190 2000/04/17 17:24:57 wessels Exp $
  *
  * DEBUG: section 21    Misc Functions
  * AUTHOR: Harvest Derived
@@ -848,7 +848,7 @@ debugObj(int section, int level, const char *label, void *obj, ObjPackMethod pm)
 int
 stringHasWhitespace(const char *s)
 {
-    return (strcspn(s, w_space) != strlen(s));
+    return strpbrk(s, w_space) != NULL;
 }
 
 void