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) ...@@ -2263,9 +2263,12 @@ delete_to_string (m_imap_t m_imap, char **pset)
2263 } 2263 }
2264 } /* for () */ 2264 } /* for () */
2265 2265
2266 status = add_number (&set, start, cur); 2266 if (start)
2267 if (status != 0) 2267 {
2268 return status; 2268 status = add_number (&set, start, cur);
2269 if (status != 0)
2270 return status;
2271 }
2269 *pset = set; 2272 *pset = set;
2270 return 0; 2273 return 0;
2271 } 2274 }
......