]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/inetcfg/serv_inetcfg.c
rssclient.c - dont compare null strings
[citadel.git] / citadel / modules / inetcfg / serv_inetcfg.c
index c37dd24fbdfcb103ea033bbb10fb5bdd2664b07c..cf81a8f5b8cf23ac24424971ffa565f342a2fc13 100644 (file)
@@ -92,7 +92,10 @@ int inetcfg_aftersave(struct CtdlMessage *msg, recptypes *recp) {
        /* If this isn't the configuration room, or if this isn't a MIME
         * message, don't bother.
         */
-       if (strcasecmp(msg->cm_fields[eOriginalRoom], SYSCONFIGROOM)) return(0);
+       if ((msg->cm_fields[eOriginalRoom]) && (strcasecmp(msg->cm_fields[eOriginalRoom], SYSCONFIGROOM)))
+       {
+               return(0);
+       }
        if (msg->cm_format_type != 4) return(0);
 
        ptr = msg->cm_fields[eMesageText];
@@ -119,7 +122,7 @@ int inetcfg_aftersave(struct CtdlMessage *msg, recptypes *recp) {
 void inetcfg_init_backend(long msgnum, void *userdata) {
        struct CtdlMessage *msg;
 
-               msg = CtdlFetchMessage(msgnum, 1);
+               msg = CtdlFetchMessage(msgnum, 1, 1);
                if (msg != NULL) {
                inetcfg_setTo(msg);
                        CM_Free(msg);