* more whitch-hunt on strlen with isemptystr replacement.
[citadel.git] / citadel / modules / notes / serv_notes.c
index 47e968b03bd22cfc8ba6b00947e2edda66a9742a..374cb57eba25b7cc5a25005011898b8706bfe237 100644 (file)
@@ -83,7 +83,7 @@ int serv_notes_beforesave(struct CtdlMessage *msg)
                        }
 
                        lprintf(9, "UUID of note is: %s\n", uuid);
-                       if (strlen(uuid) > 0) {
+                       if (!IsEmptyStr(uuid)) {
 
                                if (msg->cm_fields['E'] != NULL) {
                                        free(msg->cm_fields['E']);