bug fix, fourier(), prevent endless loop when processing unexpected vectors

This commit is contained in:
rlar 2012-09-30 23:10:38 +02:00
parent e712080579
commit e0d64e14cc
1 changed files with 2 additions and 0 deletions

View File

@ -97,10 +97,12 @@ fourier(wordlist *wl, struct plot *current_plot)
fprintf(cp_err,
"Error: lengths don't match: %d, %d\n",
vec->v_length, time->v_length);
vec = vec->v_link2;
continue;
}
if (!isreal(vec)) {
fprintf(cp_err, "Error: %s isn't real!\n", vec->v_name);
vec = vec->v_link2;
continue;
}