Changeset ca45e58 for src/mathutils.c


Ignore:
Timestamp:
Dec 2, 2013, 4:03:54 AM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
3f27a98
Parents:
74bdc4a
Message:

src/mathutils.c: return NULL on error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mathutils.c

    r74bdc4a rca45e58  
    5050{
    5151  fvec_t * win = new_fvec (length);
    52   fvec_set_window (win, window_type);
     52  if (win == NULL) {
     53    return NULL;
     54  }
     55  uint_t err = fvec_set_window (win, window_type);
     56  if (err != 0) {
     57    del_fvec(win);
     58    return NULL;
     59  }
    5360  return win;
    5461}
Note: See TracChangeset for help on using the changeset viewer.