// Load the message list
num_msgs = CtdlFetchMsgList(which_room->QRnumber, &msglist);
if (num_msgs <= 0) {
- if (msglist != NULL) {
- free(msglist);
- }
+ free(msglist);
return;
}
// 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.
}
/*
* 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;