Changeset 901cee9
- Timestamp:
- Jul 4, 2011, 12:50:55 AM (12 years ago)
- Branches:
- master, release-1.8, release-1.9
- Children:
- 4a01fc6, 95c7f0c, 401752a
- Parents:
- 785ee77
- git-author:
- Jason Gross <jgross@mit.edu> (07/03/11 23:42:26)
- git-committer:
- Jason Gross <jgross@mit.edu> (07/04/11 00:50:55)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
rca749a9 r901cee9 2498 2498 } else if(argc == 2) { 2499 2499 /* Handle :unpunt <number> */ 2500 if (unpunt && (i=atoi(argv[1])) !=0) {2500 if (unpunt && (i = atoi(argv[1])) > 0) { 2501 2501 i--; /* Accept 1-based indexing */ 2502 2502 if (i < fl->len) { -
messagelist.c
rfc8a87a r901cee9 22 22 void *owl_messagelist_get_element(const owl_messagelist *ml, int n) 23 23 { 24 /* we assume things like owl_view_get_element(v, owl_global_get_curmsg(&g)) 25 * work even when there are no messages in the message list. So don't 26 * segfault if someone asks for the zeroth element of an empty list. 27 */ 28 if (n >= ml->list->len) return NULL; 24 29 return ml->list->pdata[n]; 25 30 }
Note: See TracChangeset
for help on using the changeset viewer.