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 e809b8e..207787d 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: