diff --git a/rfio.c b/rfio.c index cfa3574..70205fe 100644 --- a/rfio.c +++ b/rfio.c @@ -93,7 +93,7 @@ struct spectrogram read_spectrogram(char *prefix,int isub,int nsub,double f0,dou file=fopen(filename,"r"); if (file==NULL) { printf("%s does not exist\n",filename); - s.nsub=0; + s.nsub=nsub; break; } printf("opened %s\n",filename);