Skip to content
Commit 57f0df3e authored by David Brown's avatar David Brown Committed by David Brown
Browse files

boot_serial: Initialize possibly initialized variable



The variable `dec_off` can possibly be uninitialized in this function.
As long as the serial protocol used is formed correctly, the
initialization will always happen.  Place an initialization upon
function entry to protect against a case where a malformed protocol is
able to provoke this variable being used before being initialized.

Signed-off-by: default avatarDavid Brown <david.brown@linaro.org>
parent 4cb70ccb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment