If user clicks in the empty part of a mailbox view, display a blank pane instead...
authorArt Cancro <ajc@uncensored.citadel.org>
Wed, 24 Aug 2011 21:06:27 +0000 (17:06 -0400)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 4 Sep 2011 21:55:01 +0000 (21:55 +0000)
webcit/messages.c

index e809b8ebbd293959fe90834858eb79f48bc3d837..207787d67fbcb626f7c51fb62dc28c664b189034 100644 (file)
@@ -399,6 +399,8 @@ void embed_message(void) {
        StrBuf *CmdBuf = NULL;
 
        msgnum = StrBufExtract_long(WCC->Hdr->HR.ReqLine, 0, '/');
+       if (msgnum <= 0) return;
+
        switch (WCC->Hdr->HR.eReqType)
        {
        case eGET: