* client software. Revisit later...
*/
for (i=0; i<num_items; ++i) {
- if (itemlist[i].Key[0] == '(') {
+ if (itemlist[i].len && (itemlist[i].Key[0] == '(')) {
TokenCutLeft(&Imap->Cmd, &itemlist[i], 1);
}
- if (itemlist[i].Key[itemlist[i].len-1] == ')') {
+ if (itemlist[i].len && (itemlist[i].Key[itemlist[i].len-1] == ')')) {
TokenCutRight(&Imap->Cmd, &itemlist[i], 1);
}
}