[Gptfdisk-general] [PATCH 1/4] IeeeToInt: initialize suffix
Brought to you by:
srs5694
From: Cody P S. <de...@co...> - 2015-06-17 21:28:53
|
--- support.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support.cc b/support.cc index 0833a3e..7a6354d 100644 --- a/support.cc +++ b/support.cc @@ -144,7 +144,7 @@ uint64_t GetSectorNum(uint64_t low, uint64_t high, uint64_t def, uint64_t sSize, uint64_t IeeeToInt(string inValue, uint64_t sSize, uint64_t low, uint64_t high, uint64_t def) { uint64_t response = def, bytesPerUnit = 1, mult = 1, divide = 1; size_t foundAt = 0; - char suffix, plusFlag = ' '; + char suffix = ' ', plusFlag = ' '; string suffixes = "KMGTPE"; int badInput = 0; // flag bad input; once this goes to 1, other values are irrelevant -- 2.4.3 |