Changeset ca45e58


Ignore:
Timestamp:
Dec 2, 2013, 4:03:54 AM (11 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, 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.