Fixed a null pointer issue
[citadel.git] / citadel / modules / rssclient / serv_rssclient.c
index 784f34b60d103406296b9edf72079713a4ad2467..f76b3c01cde642f8b3c0fab5c0d555cc45d13ea1 100644 (file)
@@ -513,7 +513,7 @@ eNextState RSSAggregator_AnalyseReply(AsyncIO *IO)
 
                SetRSSState(IO, eRSSFailure);
                ErrMsg = NewStrBuf();
-               EVRSSC_syslog(LOG_ALERT, "need a 200, got a %ld !\n",
+               if (IO) EVRSSC_syslog(LOG_ALERT, "need a 200, got a %ld !\n",
                              IO->HttpReq.httpcode);
                
                strs[0] = ChrPtr(Ctx->Url);