* Created IsEmptyStr define to be used rather then using some weird strlen constructs
[citadel.git] / webcit / groupdav_put.c
index 21eaefbb858271711a7373f08fd70877c3cbbe4b..512896049242fc5e16e7a25fb2562548742876e7 100644 (file)
@@ -99,7 +99,7 @@ void groupdav_put(char *dav_pathname, char *dav_ifmatch,
         * client is expecting.  If not, the server probably contains a newer
         * version, so we fail...
         */
-       if (strlen(dav_ifmatch) > 0) {
+       if (!IsEmptyStr(dav_ifmatch)) {
                lprintf(9, "dav_ifmatch: %s\n", dav_ifmatch);
                old_msgnum = locate_message_by_uid(dav_uid);
                lprintf(9, "old_msgnum:  %ld\n", old_msgnum);