diff --git a/src/drv_imap.c b/src/drv_imap.c index 21e6018..1e976f2 100644 --- a/src/drv_imap.c +++ b/src/drv_imap.c @@ -865,7 +865,9 @@ parse_search( imap_t *imap, char *cmd ) int uid; arg = next_arg( &cmd ); - if (!arg || !(uid = atoi( arg ))) { + if (!arg) + return; + if (!(uid = atoi( arg ))) { fprintf( stderr, "IMAP error: malformed SEARCH response\n" ); return; }