summaryrefslogtreecommitdiff
path: root/src/smt
diff options
context:
space:
mode:
authorTim King <taking@google.com>2015-10-23 15:11:57 -0700
committerTim King <taking@google.com>2015-10-23 19:12:23 -0700
commitc9b7de773cdc53044e5cf4a55d4893d2be476b60 (patch)
tree24b93deaf10909a476cb2d3c0b16e26956a57641 /src/smt
parentdd59444639796fb56b11d3852ca436fc049f39c7 (diff)
Switching Options::current() to return a pointer. This helps avoid undefined behavior due to dereferencing a null pointer in the future.
Diffstat (limited to 'src/smt')
-rw-r--r--src/smt/smt_engine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp
index 2784bb006..c863909e5 100644
--- a/src/smt/smt_engine.cpp
+++ b/src/smt/smt_engine.cpp
@@ -1738,7 +1738,7 @@ CVC4::SExpr SmtEngine::getInfo(const std::string& key) const
return SExpr(d_userLevels.size());
} else if(key == "all-options") {
// get the options, like all-statistics
- return Options::current().getOptions();
+ return Options::current()->getOptions();
} else {
throw UnrecognizedOptionException();
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback