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:
parent
c0dbe7a3e1
commit
bd735075ab
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user