Removed IsEmptyStr from some loops as its quicker this way (probably).
authorDave West <davew@uncensored.citadel.org>
Thu, 23 Aug 2007 10:16:56 +0000 (10:16 +0000)
committerDave West <davew@uncensored.citadel.org>
Thu, 23 Aug 2007 10:16:56 +0000 (10:16 +0000)
citadel/modules/notes/serv_notes.c

index 242fa3e5a358cf794e73247a321a7e8cff2194de..18494fde67468d4189c12338681a6c4b58337a96 100644 (file)
@@ -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;