diff options
author | John Wiegley <johnw@newartisans.com> | 2009-03-08 01:25:52 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-03-08 02:07:49 -0400 |
commit | c99ab20853b1315d59938c7e16a420bc09407299 (patch) | |
tree | 239ac7868919f7a4a40edd5c9bc563cd1749d42b /src/pyinterp.cc | |
parent | 6f95dfa6bec4f468dc5345976309fb965a650524 (diff) | |
download | fork-ledger-c99ab20853b1315d59938c7e16a420bc09407299.tar.gz fork-ledger-c99ab20853b1315d59938c7e16a420bc09407299.tar.bz2 fork-ledger-c99ab20853b1315d59938c7e16a420bc09407299.zip |
Fixed a few minor cases of uninitialized variables
Diffstat (limited to 'src/pyinterp.cc')
-rw-r--r-- | src/pyinterp.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pyinterp.cc b/src/pyinterp.cc index fdc22af9..56f9b6af 100644 --- a/src/pyinterp.cc +++ b/src/pyinterp.cc @@ -207,7 +207,7 @@ object python_interpreter_t::eval(std::istream& in, py_eval_mode_t mode) initialize(); try { - int input_mode; + int input_mode = -1; switch (mode) { case PY_EVAL_EXPR: input_mode = Py_eval_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(); try { - int input_mode; + int input_mode = -1; switch (mode) { case PY_EVAL_EXPR: input_mode = Py_eval_input; break; case PY_EVAL_STMT: input_mode = Py_single_input; break; |