- Timestamp:
- Jul 25, 2011, 1:35:30 AM (13 years ago)
- Branches:
- master, release-1.10, release-1.9
- Children:
- a74a044
- Parents:
- f271129
- git-author:
- David Benjamin <davidben@mit.edu> (07/25/11 01:24:06)
- git-committer:
- David Benjamin <davidben@mit.edu> (07/25/11 01:35:30)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
message.c
rf271129 rb9517cf 33 33 owl_message_set_direction_none(m); 34 34 m->delete=0; 35 36 #ifdef HAVE_LIBZEPHYR 37 m->has_notice = false; 38 #endif 35 39 36 40 owl_message_set_hostname(m, ""); … … 490 494 const ZNotice_t *owl_message_get_notice(const owl_message *m) 491 495 { 492 return (&(m->notice));496 return m->has_notice ? &m->notice : NULL; 493 497 } 494 498 #else … … 781 785 /* first save the full notice */ 782 786 m->notice = *n; 787 m->has_notice = true; 783 788 784 789 /* a little gross, we'll replace \r's with ' ' for now */ … … 996 1001 owl_pair *p; 997 1002 #ifdef HAVE_LIBZEPHYR 998 if ( owl_message_is_type_zephyr(m) && owl_message_is_direction_in(m)) {1003 if (m->has_notice) { 999 1004 ZFreeNotice(&(m->notice)); 1000 1005 }
Note: See TracChangeset
for help on using the changeset viewer.