Commit bad901df bad901dfa22ba2bb0d2b50918e1240d6f09824a8 by Sergey Poznyakoff

(delete_to_string): Make sure the message

set does not end with a comma. Bug reported by Gerd Flaig, I suppose.
1 parent 0ec4cb40
......@@ -2263,9 +2263,12 @@ delete_to_string (m_imap_t m_imap, char **pset)
}
} /* for () */
status = add_number (&set, start, cur);
if (status != 0)
return status;
if (start)
{
status = add_number (&set, start, cur);
if (status != 0)
return status;
}
*pset = set;
return 0;
}
......