* check for NULL pointers... Should we even come here?
authorWilfried Goesgens <dothebart@citadel.org>
Sun, 12 Sep 2010 09:41:43 +0000 (11:41 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 12 Sep 2010 09:41:43 +0000 (11:41 +0200)
webcit/static.c

index 1bac24a745886a1bd6255302613009a26a2cf254..46770bf1220de5bec6d05e2d02b291bc66262715 100644 (file)
@@ -223,6 +223,8 @@ void output_flat_static(void)
        void *vFile;
        StrBuf *File;
 
+       if (WCC->Hdr->HR.Handler == NULL)
+               return;
        if (GetHash(StaticFilemappings[0], SKEY(WCC->Hdr->HR.Handler->Name), &vFile) &&
            (vFile != NULL))
        {