Changeset 8321cb7


Ignore:
Timestamp:
Jul 11, 2009, 1:14:35 PM (12 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
16cfd12a
Parents:
2f21a41
git-author:
Karl Ramm <kcr@1ts.org> (06/13/09 15:20:18)
git-committer:
Nelson Elhage <nelhage@mit.edu> (07/11/09 13:14:35)
Message:
make sure the new editwin structure is zeroed out & release a potential dangling excursion
File:
1 edited

Legend:

Unmodified
Added
Removed
  • editwin.c

    r2f21a41 r8321cb7  
    6060owl_editwin *owl_editwin_allocate(void)
    6161{
    62   return owl_malloc(sizeof(owl_editwin));
     62  owl_editwin *e;
     63  e = owl_malloc(sizeof(owl_editwin));
     64  memset(e, 0, sizeof(*e));
     65  return e;
    6366}
    6467
     
    854857    if (owl_editwin_is_char_in(e, WHITESPACE)) { /* we were at the beginning */
    855858      distance += owl_editwin_backward_word(e); /* previous case */
     859      oe_release_excursion(e, &x);
    856860      return distance + further;
    857861    } else {
Note: See TracChangeset for help on using the changeset viewer.