User types:
bug submit my bug
Then:
types at least a character of input, presses return
then decides he/she does not want to submit this bug, so types:
/a
Result:
The bug submission still gets saved to the list
The problem appears to be that because the entry is not an empty 'body' it is not getting cleaned up.
Solution:
Looking for confirmation on the proper way to handle this, this is what I did:
Code:
/* original */
/*
void clean_ibt_list(int mode) {
  IBT_DATA *ibtData = get_first_ibt(mode), *ibtTemp;
  while (ibtData) {
    ibtTemp = ibtData;
    ibtData = ibtData->next;
    if (!ibtTemp->body || !*ibtTemp->body) {
      free_ibt(mode, ibtTemp);
    }
  }
}
*/
/* trying this out -zusuk */
void clean_ibt_list(int mode) {
  IBT_DATA *ibtData = get_last_ibt(mode);
  if (ibtData)
    free_ibt(mode, ibtData);
}