diff options
author | Chris Wilson <chris+github@qwirx.com> | 2013-09-28 23:42:25 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2013-09-28 23:42:25 +0000 |
commit | caa198fee3d6a9df3d2fbed4923b4b8ad554c706 (patch) | |
tree | 7e57b188892931b6a6be8ed6262cd2c107432a52 /bin/bbstoreaccounts | |
parent | 4e3a8826998a38250ff4751c8836c596e9c25a4a (diff) |
Clang complains that "enabled" is not initialised.
It doesn't know that we call a function that exits the program
prematurely. In any case, this patch stops it from complaining.
Diffstat (limited to 'bin/bbstoreaccounts')
-rw-r--r-- | bin/bbstoreaccounts/bbstoreaccounts.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/bbstoreaccounts/bbstoreaccounts.cpp b/bin/bbstoreaccounts/bbstoreaccounts.cpp index 996a12fb..6a5c2e33 100644 --- a/bin/bbstoreaccounts/bbstoreaccounts.cpp +++ b/bin/bbstoreaccounts/bbstoreaccounts.cpp @@ -670,7 +670,7 @@ int main(int argc, const char *argv[]) PrintUsageAndExit(); } - bool enabled; + bool enabled = true; std::string enabled_string = argv[2]; if(enabled_string == "yes") { |