From: Dave West Date: Thu, 23 Aug 2007 10:16:56 +0000 (+0000) Subject: Removed IsEmptyStr from some loops as its quicker this way (probably). X-Git-Tag: v7.86~3129 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=a7192485d9049fbf5163f3784de3705ebfb8636f Removed IsEmptyStr from some loops as its quicker this way (probably). --- diff --git a/citadel/modules/notes/serv_notes.c b/citadel/modules/notes/serv_notes.c index 242fa3e5a..18494fde6 100644 --- a/citadel/modules/notes/serv_notes.c +++ b/citadel/modules/notes/serv_notes.c @@ -76,7 +76,7 @@ int serv_notes_beforesave(struct CtdlMessage *msg) while (--a > 0) { if (!strncasecmp(p, "X-KOrg-Note-Id: ", 16)) { /* Found it */ safestrncpy(uuid, p + 16, sizeof(uuid)); - for (i = 0; !IsEmptyStr(&uuid[i]); ++i) { + for (i = 0; uuid[i]; ++i) { if ( (uuid[i] == '\r') || (uuid[i] == '\n') ) { uuid[i] = 0; break;