Commit 02ce501a 02ce501ad40d661045abc67f280bfd3d06bd81b7 by Wojciech Polak

* imap4d/util.c (imap4d_readline): Bugfix.

1 parent 45540e1d
...@@ -1360,6 +1360,8 @@ imap4d_readline (struct imap4d_tokbuf *tok) ...@@ -1360,6 +1360,8 @@ imap4d_readline (struct imap4d_tokbuf *tok)
1360 if (transcript) 1360 if (transcript)
1361 mu_diag_output (MU_DIAG_DEBUG, "recv: %s", tok->buffer); 1361 mu_diag_output (MU_DIAG_DEBUG, "recv: %s", tok->buffer);
1362 imap4d_tokbuf_tokenize (tok, off); 1362 imap4d_tokbuf_tokenize (tok, off);
1363 if (tok->argc == 0)
1364 break;
1363 last_arg = tok->buffer + tok->argp[tok->argc - 1]; 1365 last_arg = tok->buffer + tok->argp[tok->argc - 1];
1364 if (last_arg[0] == '{' && last_arg[strlen(last_arg)-1] == '}') 1366 if (last_arg[0] == '{' && last_arg[strlen(last_arg)-1] == '}')
1365 { 1367 {
......