Fixed a few minor cases of uninitialized variables
This commit is contained in:
parent
6f95dfa6be
commit
c99ab20853
4 changed files with 7 additions and 6 deletions
|
|
@ -79,7 +79,7 @@ void generate_posts_iterator::generate_string(std::ostream& out, int len,
|
||||||
DEBUG("generate.post.string",
|
DEBUG("generate.post.string",
|
||||||
"Generating string of length " << len << ", only alpha " << only_alpha);
|
"Generating string of length " << len << ", only alpha " << only_alpha);
|
||||||
|
|
||||||
int last;
|
int last = -1;
|
||||||
bool first = true;
|
bool first = true;
|
||||||
for (int i = 0; i < len; i++) {
|
for (int i = 0; i < len; i++) {
|
||||||
int next = only_alpha ? 3 : three_gen();
|
int next = only_alpha ? 3 : three_gen();
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ namespace ledger {
|
||||||
|
|
||||||
int main(int argc, char * argv[], char * envp[])
|
int main(int argc, char * argv[], char * envp[])
|
||||||
{
|
{
|
||||||
int status;
|
int status = 1;
|
||||||
|
|
||||||
#ifdef HAVE_BOOST_PYTHON
|
#ifdef HAVE_BOOST_PYTHON
|
||||||
argv0 = argv[0];
|
argv0 = argv[0];
|
||||||
|
|
|
||||||
|
|
@ -37,8 +37,9 @@ string args_to_predicate_expr(value_t::sequence_t::const_iterator& begin,
|
||||||
value_t::sequence_t::const_iterator end)
|
value_t::sequence_t::const_iterator end)
|
||||||
{
|
{
|
||||||
std::ostringstream expr;
|
std::ostringstream expr;
|
||||||
bool append_or = false;
|
|
||||||
bool only_parenthesis;
|
bool append_or = false;
|
||||||
|
bool only_parenthesis = false;
|
||||||
|
|
||||||
while (begin != end) {
|
while (begin != end) {
|
||||||
string arg = (*begin).as_string();
|
string arg = (*begin).as_string();
|
||||||
|
|
|
||||||
|
|
@ -207,7 +207,7 @@ object python_interpreter_t::eval(std::istream& in, py_eval_mode_t mode)
|
||||||
initialize();
|
initialize();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
int input_mode;
|
int input_mode = -1;
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
case PY_EVAL_EXPR: input_mode = Py_eval_input; break;
|
case PY_EVAL_EXPR: input_mode = Py_eval_input; break;
|
||||||
case PY_EVAL_STMT: input_mode = Py_single_input; break;
|
case PY_EVAL_STMT: input_mode = Py_single_input; break;
|
||||||
|
|
@ -229,7 +229,7 @@ object python_interpreter_t::eval(const string& str, py_eval_mode_t mode)
|
||||||
initialize();
|
initialize();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
int input_mode;
|
int input_mode = -1;
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
case PY_EVAL_EXPR: input_mode = Py_eval_input; break;
|
case PY_EVAL_EXPR: input_mode = Py_eval_input; break;
|
||||||
case PY_EVAL_STMT: input_mode = Py_single_input; break;
|
case PY_EVAL_STMT: input_mode = Py_single_input; break;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue