Changeset d94afb3 for tests


Ignore:
Timestamp:
Nov 29, 2018, 1:07:15 AM (6 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
Children:
703cc2b
Parents:
e7edf92
Message:

[tests] [win] use calloc to work around constant size issue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/utils_tests.h

    re7edf92 rd94afb3  
    118118  const int argc = 2;
    119119  int err = 0;
    120   char* argv[argc];
     120  char** argv = (char**)calloc(argc, sizeof(char*));
    121121  char sink_path[PATH_MAX] = "tmp_aubio_XXXXXX";
    122122  int fd = create_temp_sink(sink_path);
     
    126126  err = main(argc, argv);
    127127  close_temp_sink(sink_path, fd);
     128  if (argv) free(argv);
    128129  return err;
    129130}
Note: See TracChangeset for help on using the changeset viewer.