A typo would have prevented mbox_parse_mailbox() from working correctly.
Also, add a few comments.
Thanks to Pietro Cerutti (@gahr) for spotting this.
if (SigInt == 1)
{
SigInt = 0;
- return -2;
+ return -2; /* action aborted */
}
return 0;
}
loc = ftello (ctx->fp);
- while ((fgets (buf, sizeof (buf), ctx->fp) != NULL) && (SigInt != 0))
+ while ((fgets (buf, sizeof (buf), ctx->fp) != NULL) && (SigInt != 1))
{
if (is_from (buf, return_path, sizeof (return_path), &t))
{
if (SigInt == 1)
{
SigInt = 0;
- return -2;
+ return -2; /* action aborted */
}
return 0;
if (SigInt == 1)
{
SigInt = 0;
- return -2;
+ return -2; /* action aborted */
}
return 0;