diff --git a/Fonderie/filterstack.c b/Fonderie/filterstack.c index 13d9f713..0256436e 100644 --- a/Fonderie/filterstack.c +++ b/Fonderie/filterstack.c @@ -105,6 +105,11 @@ if (numid < 0 || numid > NUMBER_OF_STACK) { exit(1); } +if (0==f_stacks[numid].count) { + fprintf(stderr, "%s: stack %d empty ?\n", __func__, numid); + return -11; + } + for (idx=0; idx %d\n", foo); + fprintf(stderr, "run filt stack--> %d\n", foo); return foo; } @@ -282,7 +288,12 @@ if (foo) { exit(1); } -// filterstack_list(__FILE__); +if (verbosity) { + puts("=============="); + filterstack_list(0, __FILE__); + filterstack_list(1, __FILE__); + puts("=============="); + } nbrsteps = atoi(argv[optind+2]); foo = interpolator(argv[optind], argv[optind+1], nbrsteps,