[Kst] kdeextragear-2/kst/kst/datasources/dirfile
Barth Netterfield
netterfield at astro.utoronto.ca
Sat Nov 20 06:41:37 CET 2004
CVS commit by netterfield:
BUG:
fix crash from bad LINCOM entries in dirfiles: (fix an uninit variable)
M +9 -3 getdata.c 1.23
--- kdeextragear-2/kst/kst/datasources/dirfile/getdata.c #1.22:1.23
@@ -1115,5 +1115,8 @@ static int DoIfBit(struct FormatType *F,
spf = GetSPF(B->raw_field, F, error_code);
recurse_level--;
- if (*error_code!=GD_E_OK) return(1);
+ if (*error_code!=GD_E_OK) {
+ *n_read = 0;
+ return(1);
+ }
ns = num_samp + num_frames*spf;
@@ -1301,5 +1304,8 @@ static int DoIfLinterp(struct FormatType
if (I->n_interp<0) {
*error_code = ReadLinterpFile(I);
- if (*error_code != GD_E_OK) return(1);
+ if (*error_code != GD_E_OK) {
+ *n_read = 0;
+ return(1);
+ }
}
recurse_level++;
More information about the Kst
mailing list