projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad98951
)
Removed IsEmptyStr from some loops as its quicker this way (probably).
author
Dave West
<davew@uncensored.citadel.org>
Thu, 23 Aug 2007 10:16:56 +0000
(10:16 +0000)
committer
Dave West
<davew@uncensored.citadel.org>
Thu, 23 Aug 2007 10:16:56 +0000
(10:16 +0000)
citadel/modules/notes/serv_notes.c
patch
|
blob
|
history
diff --git
a/citadel/modules/notes/serv_notes.c
b/citadel/modules/notes/serv_notes.c
index 242fa3e5a358cf794e73247a321a7e8cff2194de..18494fde67468d4189c12338681a6c4b58337a96 100644
(file)
--- 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;