summaryrefslogtreecommitdiff
path: root/storage/connect/tabfix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'storage/connect/tabfix.cpp')
-rw-r--r--storage/connect/tabfix.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/storage/connect/tabfix.cpp b/storage/connect/tabfix.cpp
index f4bdb3011e3..fe04fe52627 100644
--- a/storage/connect/tabfix.cpp
+++ b/storage/connect/tabfix.cpp
@@ -176,9 +176,11 @@ void TDBFIX::RestoreNrec(void)
Txfp->Nrec = (To_Def && To_Def->GetElemt()) ? To_Def->GetElemt()
: DOS_BUFF_LEN;
Txfp->Blksize = Txfp->Nrec * Txfp->Lrecl;
- assert(Cardinal >= 0);
- Txfp->Block = (Cardinal > 0)
- ? (Cardinal + Txfp->Nrec - 1) / Txfp->Nrec : 0;
+
+ if (Cardinal >= 0)
+ Txfp->Block = (Cardinal > 0)
+ ? (Cardinal + Txfp->Nrec - 1) / Txfp->Nrec : 0;
+
} // endif Padded
} // end of RestoreNrec