mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-25 06:01:14 +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?
|
// Can it be converted to a value?
|
||||||
LongestValueType value;
|
LongestValueType value = 0;
|
||||||
bool res = FromString(s, &value);
|
bool res = FromString(s, &value);
|
||||||
if ( !res )
|
if ( !res )
|
||||||
*errMsg = XO("Malformed number");
|
*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?
|
bool res = FromString(s, &value); // Can it be converted to a value?
|
||||||
if ( !res )
|
if ( !res )
|
||||||
*errMsg = XO("Value overflow");
|
*errMsg = XO("Value overflow");
|
||||||
|
|||||||
Reference in New Issue
Block a user