Initialize sscanf_success to zero

This commit is contained in:
MCUdude
2023-04-21 19:54:16 +02:00
parent 7a1c245b1a
commit 0e7702b03a
2 changed files with 2 additions and 2 deletions

View File

@@ -680,7 +680,7 @@ static int stk500_parseextparms(const PROGRAMMER *pgm, const LISTID extparms)
else if (str_starts(extended_param, "varef")) {
if (pgm->extra_features & HAS_VAREF_ADJ) {
int sscanf_success;
int sscanf_success = 0;
double varef_set_val = 0;
// Get new analog reference voltage for channel 0
if (str_starts(extended_param, "varef=")) {

View File

@@ -1844,7 +1844,7 @@ static int stk500v2_parseextparms(const PROGRAMMER *pgm, const LISTID extparms)
else if (str_starts(extended_param, "varef")) {
if (pgm->extra_features & HAS_VAREF_ADJ) {
int sscanf_success;
int sscanf_success = 0;
double varef_set_val = 0;
// Get new analog reference voltage for channel 0
if (str_starts(extended_param, "varef=")) {