]> 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 7c0bedaa10aaf1cd89604a9c463b09f6c71b8e7f..cf81a8f5b8cf23ac24424971ffa565f342a2fc13 100644 (file)
@@ -85,14 +85,17 @@ void inetcfg_setTo(struct CtdlMessage *msg) {
  * This handler detects changes being made to the system's Internet
  * configuration.
  */
-int inetcfg_aftersave(struct CtdlMessage *msg) {
+int inetcfg_aftersave(struct CtdlMessage *msg, recptypes *recp) {
        char *ptr;
        int linelen;
 
        /* 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) {
 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);