Skip to content

Commit cfcb213

Browse files
committed
refactor: move upper/lower declarations outside loops to avoid reinitializing to zero each iteration
1 parent a2e9f22 commit cfcb213

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/burp/restore.epp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1852,7 +1852,6 @@ void get_array(BurpGlobals* tdgbl, burp_rel* relation, UCHAR* record_buffer)
18521852
SLONG last_element_dim[MAX_DIMENSION];
18531853
if (return_length != slice_length)
18541854
{
1855-
int upper = 0, lower = 0;
18561855
//
18571856
// Ugh! The full array wasn't returned and versions of gbak prior to
18581857
// V3.2I don't explicitly signal this. We must recompute the top
@@ -1975,6 +1974,8 @@ void get_array(BurpGlobals* tdgbl, burp_rel* relation, UCHAR* record_buffer)
19751974
// dims were (1,2), we would just do a isc_put_slice(1..1, 1..2).
19761975
// This is applied for any number of dimensions.
19771976
//
1977+
1978+
int upper = 0, lower = 0;
19781979
for (range = field->fld_ranges, count = 0; range < end_ranges; range += 2, count++)
19791980
{
19801981
add_byte(blr, isc_sdl_do2);

0 commit comments

Comments
 (0)