]> code.citadel.org Git - citadel.git/blobdiff - citadel/server/msgbase.c
serv_imap.c: moved to new CtdlFetchMsgList() API.
[citadel.git] / citadel / server / msgbase.c
index daee42762e6b986a9ab19c96daa250b734243426..5e054ac86b5077f219621f95485897fad9d660db 100644 (file)
@@ -446,9 +446,7 @@ void CtdlSetSeen(long *target_msgnums, int num_target_msgnums,
        // Load the message list
        num_msgs = CtdlFetchMsgList(which_room->QRnumber, &msglist);
        if (num_msgs <= 0) {
-               if (msglist != NULL) {
-                       free(msglist);
-               }
+               free(msglist);
                return;
        }
        
@@ -653,7 +651,7 @@ int CtdlForEachMessage(int mode, long ref, char *search_string,
        // Load the message list
        num_msgs = CtdlFetchMsgList(CC->room.QRnumber, &msglist);
        if (num_msgs <= 0) {
-               if (msglist) free(msglist);
+               free(msglist);
                if (need_to_free_re) regfree(&re);
                return 0;       // No messages at all?  No further action.
        }
@@ -3299,8 +3297,7 @@ int CtdlDeleteMessages(const char *room_name,     // which room
 /*
  * GetMetaData()  -  Get the supplementary record for a message
  */
-void GetMetaData(struct MetaData *smibuf, long msgnum)
-{
+void GetMetaData(struct MetaData *smibuf, long msgnum) {
        struct cdbdata *cdbsmi;
        long TheIndex;