Commit de541c9a authored by mmakela's avatar mmakela

branches/innodb+: ibuf_set_entry_counter(): Return FALSE

if the cursor is not positioned at or before a user record.
Spotted by Sunny or his gcc, which noted that counter may be uninitialized.
parent efc82fb8
...@@ -3248,6 +3248,9 @@ ibuf_set_entry_counter( ...@@ -3248,6 +3248,9 @@ ibuf_set_entry_counter(
return(FALSE); return(FALSE);
} }
} }
} else {
/* The cursor is not positioned at or before a user record. */
return(FALSE);
} }
/* Patch counter value in already built entry. */ /* Patch counter value in already built entry. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment