Changeset b644688634a207e3728488699f24f96fd01c6cfc

Show
Ignore:
Timestamp:
10/23/09 15:49:16 (5 weeks ago)
Author:
Karl Ramm <kcr@1ts.org>
git-author:
Karl Ramm <kcr@1ts.org> / 2009-09-26T14:19:30Z-0400
Parents:
bdbec0aacb083e63e1d0061e44722f3b1a05942f
Children:
73faa26a4aa955d75df73bf1beb16726be045f26
git-committer:
Karl Ramm <kcr@1ts.org> / 2009-10-23T15:49:16Z-0400
Message:
editwin: owl_realloc "doesn't" fail
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • editwin.c

    r6c171f1 rb644688  
    611611  int start, end, free, need, size, change; 
    612612  oe_excursion *x; 
    613   char *p; 
    614613 
    615614  start = e->index; 
     
    621620  if (need > 0) { 
    622621    size = e->allocated + need + INCR - (need % INCR); 
    623     p = owl_realloc(e->buff, size); 
    624     if (p == NULL) { 
    625       /* XXX signal impending doom somehow and don't do anything */ 
    626       return 0; 
    627     } 
    628     e->buff = p; 
     622    e->buff = owl_realloc(e->buff, size); 
    629623    e->allocated = size; 
    630624  }