]> code.citadel.org Git - citadel.git/blobdiff - webcit/roomops.c
* handle new strbufs in wcsession correctly
[citadel.git] / webcit / roomops.c
index 30cc875e96dba5cc2aff14ce55fc3819fc2d5a05..677fa66c1fb545e4e52eb4146aa9f65b9f1b8bb0 100644 (file)
@@ -496,7 +496,8 @@ void embed_room_banner(char *got, int navbar_style) {
         * we want it to remember the URL as a "/dotskip" one instead of
         * a "skip" or "gotonext" or something like that.
         */
-       FreeStrBuf(&WC->this_page);
+       if (WC->this_page == NULL)
+               WC->this_page = NewStrBuf();
        StrBufPrintf(WC->this_page, 
                     "dotskip&room=%s",
                     ChrPtr(WC->wc_roomname));