[Kst] kdeextragear-2/kst/kst/datasources/dirfile
George Staikos
staikos at kde.org
Wed Nov 12 04:24:11 CET 2003
CVS commit by staikos:
stat can fail here
M +3 -1 getdata.c 1.13
--- kdeextragear-2/kst/kst/datasources/dirfile/getdata.c #1.12:1.13
@@ -1381,5 +1381,7 @@ int GetNFrames(const char *filename_in,
sprintf(raw_data_filename,"%s/%s", filename, field);
- stat(raw_data_filename, &statbuf);
+ if (stat(raw_data_filename, &statbuf) < 0) {
+ return(0);
+ }
nf = statbuf.st_size/
More information about the Kst
mailing list