From: Wilfried Goesgens Date: Sun, 8 Dec 2013 15:04:09 +0000 (+0100) Subject: no need to duplicate BSTRs just for getting a StrBuf; we can use sbstr here. X-Git-Tag: v9.01~165 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=082dc69ddc2d7febf4bd004eda95de8e0fe15e63 no need to duplicate BSTRs just for getting a StrBuf; we can use sbstr here. --- diff --git a/webcit/webcit.c b/webcit/webcit.c index 89de551eb..dd0043d29 100644 --- a/webcit/webcit.c +++ b/webcit/webcit.c @@ -831,9 +831,7 @@ void display_default_landing_page(void) { if (havebstr("go")) { syslog(LOG_DEBUG, "Explicit room selection: %s", bstr("go")); - StrBuf *teh_room = NewStrBufPlain(bstr("go"), strlen(bstr("go"))); - smart_goto(teh_room); - FreeStrBuf(&teh_room); + smart_goto(sbstr("go")); } else if (default_landing_page) { http_redirect(default_landing_page);