void *vMsg;
message_summary *Msg;
char cmd[256] = "";
- int i;
+ int i, r;
wcsession *WCC = WC;
HashPos *at;
const char *HashKey;
jsonMessageListHdr();
}
- switch(ViewMsg->GetParamsGetServerCall(
+ if (ViewMsg->GetParamsGetServerCall != NULL) {
+ r = ViewMsg->GetParamsGetServerCall(
&Stat,
&ViewSpecific,
oper,
- cmd, sizeof(cmd)))
+ cmd, sizeof(cmd)
+ );
+ } else {
+ r = 0;
+ }
+ switch(r)
{
case 400:
case 404:
it = GetNewHashPos(WCC->attachments, 0);
while (GetNextHashPos(WCC->attachments, it, &len, &Key, &vAtt)) {
att = (wc_mime_attachment *)vAtt;
+ if (att->length == 0)
+ continue;
encoded_length = ((att->length * 150) / 100);
encoded = malloc(encoded_length);
if (encoded == NULL) break;
Handler->ViewCleanup = ViewCleanup;
Put(ReadLoopHandler, IKEY(RoomType), Handler, NULL);
-
}
void