mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-05 16:43:52 +01:00
Fix uninitialized values
This commit is contained in:
@@ -378,7 +378,7 @@ bool IntegerValidatorBase::DoValidateNumber(TranslatableString * errMsg) const
|
||||
}
|
||||
|
||||
// Can it be converted to a value?
|
||||
LongestValueType value;
|
||||
LongestValueType value = 0;
|
||||
bool res = FromString(s, &value);
|
||||
if ( !res )
|
||||
*errMsg = XO("Malformed number");
|
||||
@@ -499,7 +499,7 @@ bool FloatingPointValidatorBase::DoValidateNumber(TranslatableString * errMsg) c
|
||||
}
|
||||
}
|
||||
|
||||
LongestValueType value;
|
||||
LongestValueType value = 0;
|
||||
bool res = FromString(s, &value); // Can it be converted to a value?
|
||||
if ( !res )
|
||||
*errMsg = XO("Value overflow");
|
||||
|
||||
Reference in New Issue
Block a user