Changes in / [7eaa83b:4af1241]
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
recfbdcc r7803326 434 434 } 435 435 436 /* Clean up.*/436 /* free the zwrite */ 437 437 g_free(cryptmsg); 438 g_free(old_msg);439 438 } 440 439 -
owl.c
r389d487 r3b17b57 585 585 ); 586 586 587 owl_function_debugmsg("startup: setting context interactive");588 589 owl_global_pop_context(&g);590 owl_global_push_context(&g, OWL_CTX_INTERACTIVE|OWL_CTX_RECV, NULL, "recv", NULL);591 592 587 /* process the startup file */ 593 588 owl_function_debugmsg("startup: processing startup file"); … … 601 596 owl_function_error("No such style: %s", owl_global_get_default_style(&g)); 602 597 598 owl_function_debugmsg("startup: setting context interactive"); 599 600 owl_global_pop_context(&g); 601 owl_global_push_context(&g, OWL_CTX_INTERACTIVE|OWL_CTX_RECV, NULL, "recv", NULL); 602 603 603 source = owl_window_redraw_source_new(); 604 604 g_source_attach(source, NULL); -
zwrite.c
ref4074b r6329cd5 4 4 { 5 5 owl_zwrite *z = g_new(owl_zwrite, 1); 6 if (owl_zwrite_create_from_line(z, line) !=0) {7 g_free(z);6 if (owl_zwrite_create_from_line(z, line) < 0) { 7 owl_zwrite_delete(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 g_free(z);16 if (owl_zwrite_create(z, argc, argv) < 0) { 17 owl_zwrite_delete(z); 18 18 return NULL; 19 19 } … … 135 135 136 136 if (badargs) { 137 owl_zwrite_cleanup(z);138 137 return(-1); 139 138 } … … 143 142 z->recips->len == 0) { 144 143 owl_function_error("You must specify a recipient for zwrite"); 145 owl_zwrite_cleanup(z);146 144 return(-1); 147 145 } … … 269 267 owl_zwrite z; 270 268 int rv; 271 rv =owl_zwrite_create_from_line(&z, cmd);272 if (rv != 0) return rv;269 rv=owl_zwrite_create_from_line(&z, cmd); 270 if (rv) return(rv); 273 271 if (!owl_zwrite_is_message_set(&z)) { 274 272 owl_zwrite_set_message(&z, msg);
Note: See TracChangeset
for help on using the changeset viewer.