int num_processed = 0;
long thismsg;
struct MetaData smi;
- struct CtdlMessage *msg;
+ struct CtdlMessage *msg = NULL;
int is_seen = 0;
long lastold = 0L;
int printed_lastold = 0;
{
int i;
- if (is_valid_message(msg) == 0) return;
+ if (is_valid_message(msg) == 0)
+ {
+ if (msg != NULL) free (msg);
+ return;
+ }
for (i = 0; i < 256; ++i)
if (msg->cm_fields[i] != NULL) {
void cmd_msg3(char *cmdbuf)
{
long msgnum;
- struct CtdlMessage *msg;
+ struct CtdlMessage *msg = NULL;
struct ser_ret smr;
if (CC->internal_pgm == 0) {
* Respond to a meeting request.
*/
void ical_respond(long msgnum, char *partnum, char *action) {
- struct CtdlMessage *msg;
+ struct CtdlMessage *msg = NULL;
struct ical_respond_data ird;
if (
char uid[SIZ];
char hold_rm[ROOMNAMELEN];
long msgnum_being_replaced = 0;
- struct CtdlMessage *msg;
+ struct CtdlMessage *msg = NULL;
struct original_event_container oec;
icalcomponent *original_event;
char *serialized_event = NULL;
* passes it up to ical_update_my_calendar_with_reply() for processing.
*/
void ical_handle_rsvp(long msgnum, char *partnum, char *action) {
- struct CtdlMessage *msg;
+ struct CtdlMessage *msg = NULL;
struct ical_respond_data ird;
int ret;
*/
void ical_hunt_for_conflicts_backend(long msgnum, void *data) {
icalcomponent *cal;
- struct CtdlMessage *msg;
+ struct CtdlMessage *msg = NULL;
struct ical_respond_data ird;
struct icaltimetype t1start, t1end, t2start, t2end;
icalproperty *p;
* Hunt for conflicts (Phase 1 -- retrieve the object and call Phase 2)
*/
void ical_conflicts(long msgnum, char *partnum) {
- struct CtdlMessage *msg;
+ struct CtdlMessage *msg = NULL;
struct ical_respond_data ird;
msg = CtdlFetchMessage(msgnum, 1);
*/
void ical_freebusy_backend(long msgnum, void *data) {
icalcomponent *cal;
- struct CtdlMessage *msg;
+ struct CtdlMessage *msg = NULL;
struct ical_respond_data ird;
cal = (icalcomponent *)data;
*/
void ical_getics_backend(long msgnum, void *data) {
icalcomponent *encaps, *c;
- struct CtdlMessage *msg;
+ struct CtdlMessage *msg = NULL;
struct ical_respond_data ird;
encaps = (icalcomponent *)data;
struct ExpirePolicy epbuf;
long delnum;
time_t xtime, now;
- struct CtdlMessage *msg;
+ struct CtdlMessage *msg = NULL;
int a;
struct cdbdata *cdbfr;
long *msglist = NULL;
struct EPurgeList *el = NULL;
struct EPurgeList *eptr;
long msgnum;
- struct CtdlMessage *msg;
+ struct CtdlMessage *msg = NULL;
/* Phase 1: traverse through the table, discovering old records... */
lprintf(CTDL_DEBUG, "Purge EUID index: phase 1\n");
void network_deliver_digest(struct SpoolControl *sc) {
char buf[SIZ];
int i;
- struct CtdlMessage *msg;
+ struct CtdlMessage *msg = NULL;
long msglen;
long msgnum;
char *instr = NULL;
size_t instr_len = SIZ;
- struct CtdlMessage *imsg;
+ struct CtdlMessage *imsg = NULL;
struct namelist *nptr;
if (sc->num_msgs_spooled < 1) {
long msgnum;
char *instr = NULL;
size_t instr_len = SIZ;
- struct CtdlMessage *imsg;
+ struct CtdlMessage *imsg = NULL;
struct namelist *nptr;
/* Don't do this if there were no recipients! */
* from the inbound queue
*/
void network_process_buffer(char *buffer, long size) {
- struct CtdlMessage *msg;
+ struct CtdlMessage *msg = NULL;
long pos;
int field;
struct recptypes *recp = NULL;