Changeset bb85767 for zephyr.c


Ignore:
Timestamp:
Feb 23, 2011, 5:07:49 PM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
259e0475
Parents:
eb8d9c1
git-author:
David Benjamin <davidben@mit.edu> (02/20/11 15:22:36)
git-committer:
David Benjamin <davidben@mit.edu> (02/23/11 17:07:49)
Message:
Should owl_zwrite_new fail to parse zaway, check the result

In particular, should I try to reply to my good friend '-c', I might
find myself a little bit depressed. Though we ought to take care of this
case otherwise.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zephyr.c

    reb8d9c1 rbb85767  
    890890
    891891  z = owl_zwrite_new(tmpbuff);
     892  g_free(tmpbuff);
     893  if (z == NULL) {
     894    owl_function_error("Error creating outgoing zephyr.");
     895    return;
     896  }
    892897  owl_zwrite_set_message(z, owl_global_get_zaway_msg(&g));
    893898  owl_zwrite_set_zsig(z, "Automated reply:");
     
    896901  mout=owl_function_make_outgoing_zephyr(z);
    897902  owl_global_messagequeue_addmsg(&g, mout);
    898   g_free(tmpbuff);
    899903  owl_zwrite_delete(z);
    900904#endif
Note: See TracChangeset for help on using the changeset viewer.