Changeset b644688


Ignore:
Timestamp:
Oct 23, 2009, 3:49:16 PM (12 years ago)
Author:
Karl Ramm <kcr@1ts.org>
Branches:
master, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
73faa26
Parents:
bdbec0a
git-author:
Karl Ramm <kcr@1ts.org> (09/26/09 14:19:30)
git-committer:
Karl Ramm <kcr@1ts.org> (10/23/09 15:49:16)
Message:
editwin: owl_realloc "doesn't" fail
File:
1 edited

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  }
Note: See TracChangeset for help on using the changeset viewer.