diff options
author | John Wiegley <johnw@newartisans.com> | 2007-05-16 05:38:01 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:52 -0400 |
commit | 8cdc8008c36bd03e44e43aef3fc84ff20df7bd34 (patch) | |
tree | b4efb59a6c41d22cbc7e651f8ce215e38e95bfc4 /src/session.h | |
parent | 8a2b87e6e1f5cd8784130f3cfcd1911b214c55cc (diff) | |
download | ledger-8cdc8008c36bd03e44e43aef3fc84ff20df7bd34.tar.gz ledger-8cdc8008c36bd03e44e43aef3fc84ff20df7bd34.tar.bz2 ledger-8cdc8008c36bd03e44e43aef3fc84ff20df7bd34.zip |
Corrected problem with uninitialized value_t's.
Diffstat (limited to 'src/session.h')
-rw-r--r-- | src/session.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/session.h b/src/session.h index 6f7b5a12..e90a90d8 100644 --- a/src/session.h +++ b/src/session.h @@ -188,15 +188,22 @@ class session_t : public xml::xpath_t::scope_t // Debug options // - value_t option_trace_(xml::xpath_t::scope_t * locals) {} - value_t option_debug_(xml::xpath_t::scope_t * locals) {} + value_t option_trace_(xml::xpath_t::scope_t * locals) { + return NULL_VALUE; + } + value_t option_debug_(xml::xpath_t::scope_t * locals) { + return NULL_VALUE; + } - value_t option_verify(xml::xpath_t::scope_t *) {} + value_t option_verify(xml::xpath_t::scope_t *) { + return NULL_VALUE; + } value_t option_verbose(xml::xpath_t::scope_t *) { #if defined(LOGGING_ON) if (_log_level < LOG_INFO) _log_level = LOG_INFO; #endif + return NULL_VALUE; } // @@ -206,15 +213,18 @@ class session_t : public xml::xpath_t::scope_t value_t option_file_(xml::xpath_t::scope_t * locals) { assert(locals->args.size() == 1); data_file = locals->args[0].as_string(); + return NULL_VALUE; } #if 0 #if defined(USE_BOOST_PYTHON) value_t option_import_(xml::xpath_t::scope_t * locals) { python_import(optarg); + return NULL_VALUE; } value_t option_import_stdin(xml::xpath_t::scope_t * locals) { python_eval(std::cin, PY_EVAL_MULTI); + return NULL_VALUE; } #endif #endif |