Changeset 767990e for src/lvec.c


Ignore:
Timestamp:
Nov 28, 2013, 9:51:15 PM (7 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:
83d2948
Parents:
41eff53
Message:

src/{fvec,cvec,lvec,fmat}.c: make sure new_ functions return NULL if length <= 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/lvec.c

    r41eff53 r767990e  
    2323
    2424lvec_t * new_lvec( uint_t length) {
     25  if ((sint_t)length <= 0) {
     26    return NULL;
     27  }
    2528  lvec_t * s = AUBIO_NEW(lvec_t);
    2629  s->length = length;
Note: See TracChangeset for help on using the changeset viewer.