8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 20:43:02 +01:00

fseek did not returned current position

This commit is contained in:
hvlad 2009-02-02 22:25:03 +00:00
parent c0dbe7a3e1
commit bd735075ab

View File

@ -131,7 +131,8 @@ bool putFileFromArgument(char**& av, ClumpletWriter& spb, unsigned int tag)
(Arg::Gds(isc_fbsvcmgr_fp_open) << *av << Arg::OsError()).raise();
}
off_t len = fseek(file, 0, SEEK_END);
fseek(file, 0, SEEK_END);
const long len = ftell(file);
if (!len) {
(Arg::Gds(isc_fbsvcmgr_fp_empty) << *av).raise();
}