From: Dave West Date: Thu, 23 Aug 2007 09:54:26 +0000 (+0000) Subject: Removed IsEmptyStr from some loops as its quicker this way (probably). X-Git-Tag: v7.86~3133 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=a6277f93c036d2534cf37f2962e44b571cb933d4 Removed IsEmptyStr from some loops as its quicker this way (probably). --- diff --git a/citadel/modules/imap/imap_tools.c b/citadel/modules/imap/imap_tools.c index b73bb8b8e..080f9db7c 100644 --- a/citadel/modules/imap/imap_tools.c +++ b/citadel/modules/imap/imap_tools.c @@ -632,7 +632,7 @@ int imap_is_message_set(char *buf) if (!strcasecmp(buf, "ALL")) return (1); /* macro? why? */ - for (i = 0; !IsEmptyStr(&buf[i]); ++i) { /* now start the scan */ + for (i = 0; buf[i]; ++i) { /* now start the scan */ if ( (!isdigit(buf[i])) && (buf[i] != ':')