From a7192485d9049fbf5163f3784de3705ebfb8636f Mon Sep 17 00:00:00 2001 From: Dave West Date: Thu, 23 Aug 2007 10:16:56 +0000 Subject: [PATCH] Removed IsEmptyStr from some loops as its quicker this way (probably). --- citadel/modules/notes/serv_notes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2