Fix uninitialized variables in target sam3x

Exposed while building hosted with -Og option
This commit is contained in:
SId Price 2022-06-26 16:48:30 -06:00 committed by Rachel Mant
parent 0612f2dc79
commit bc9032da06
1 changed files with 1 additions and 1 deletions

View File

@ -599,7 +599,7 @@ static bool sam_cmd_gpnvm(target *t, int argc, const char **argv)
goto bad_usage; goto bad_usage;
} }
uint32_t base, gpnvm_mask; uint32_t base = 0, gpnvm_mask = 0;
enum sam_driver drv = sam_driver(t); enum sam_driver drv = sam_driver(t);
switch(drv) { switch(drv) {
case DRIVER_SAM3X: case DRIVER_SAM3X: