}
else TheSession->httpauth_pass = NewStrBufPlain(httpauth_user, -1);
+ TheSession->CLineBuf = NewStrBuf();
TheSession->hash_prefs = NewHash(1,NULL); /* Get a hash table for the user preferences */
pthread_mutex_init(&TheSession->SessionMutex, NULL);
pthread_mutex_lock(&SessionListMutex);
- TheSession->urlstrings = NULL;
- TheSession->vars = NULL;
TheSession->nonce = rand();
- TheSession->WBuf = NULL;
- TheSession->CLineBuf = NewStrBuf();
TheSession->next = SessionList;
TheSession->is_mobile = -1;
SessionList = TheSession;
* 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));