From 082dc69ddc2d7febf4bd004eda95de8e0fe15e63 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Sun, 8 Dec 2013 16:04:09 +0100 Subject: [PATCH] no need to duplicate BSTRs just for getting a StrBuf; we can use sbstr here. --- webcit/webcit.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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); -- 2.30.2