- Timestamp:
- Oct 3, 2011, 12:33:09 AM (13 years ago)
- Branches:
- master, release-1.10, release-1.9
- Children:
- 822e9bd, f417630, a19c9a3, 389d487, 6503194
- Parents:
- f34728b
- git-author:
- David Benjamin <davidben@mit.edu> (09/30/11 23:38:07)
- git-committer:
- David Benjamin <davidben@mit.edu> (10/03/11 00:33:09)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zwrite.c
r6329cd5 ref4074b 4 4 { 5 5 owl_zwrite *z = g_new(owl_zwrite, 1); 6 if (owl_zwrite_create_from_line(z, line) <0) {7 owl_zwrite_delete(z);6 if (owl_zwrite_create_from_line(z, line) != 0) { 7 g_free(z); 8 8 return NULL; 9 9 } … … 14 14 { 15 15 owl_zwrite *z = g_new(owl_zwrite, 1); 16 if (owl_zwrite_create(z, argc, argv) <0) {17 owl_zwrite_delete(z);16 if (owl_zwrite_create(z, argc, argv) != 0) { 17 g_free(z); 18 18 return NULL; 19 19 } … … 135 135 136 136 if (badargs) { 137 owl_zwrite_cleanup(z); 137 138 return(-1); 138 139 } … … 142 143 z->recips->len == 0) { 143 144 owl_function_error("You must specify a recipient for zwrite"); 145 owl_zwrite_cleanup(z); 144 146 return(-1); 145 147 } … … 267 269 owl_zwrite z; 268 270 int rv; 269 rv =owl_zwrite_create_from_line(&z, cmd);270 if (rv ) return(rv);271 rv = owl_zwrite_create_from_line(&z, cmd); 272 if (rv != 0) return rv; 271 273 if (!owl_zwrite_is_message_set(&z)) { 272 274 owl_zwrite_set_message(&z, msg);
Note: See TracChangeset
for help on using the changeset viewer.