remove seg fault

This commit is contained in:
h_vogt 2010-09-07 17:51:03 +00:00
parent 113f4ca13d
commit 4f45e4aa7f
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,6 @@
2010-09-07 Holger Vogt
* vectors.c: add plot [alli | allv | ally]
* com_measure2.c: prevent seg fault if wrong meas type is chosen
2010-09-04 Dietmar Warning
* misc/tilde.c: prevent unreached statement if pwd.h available

View File

@ -650,7 +650,12 @@ static void measure_minMaxAvg(
for (i=0; i < d->v_length; i++) {
if (ac_check) {
value = get_value(meas, d, i); //d->v_compdata[i].cx_real;
if (d->v_compdata)
value = get_value(meas, d, i); //d->v_compdata[i].cx_real;
else {
fprintf(cp_err, "Error: 'meas ac' requires complex input vector!\n");
return;
}
svalue = dScale->v_compdata[i].cx_real;
}
else if (sp_check) {