summaryrefslogtreecommitdiff
path: root/src/printer/printer.h
diff options
context:
space:
mode:
authorKshitij Bansal <kshitij@cs.nyu.edu>2015-10-13 19:59:22 -0400
committerKshitij Bansal <kshitij@cs.nyu.edu>2015-10-13 19:59:22 -0400
commit21ecec6988c6f4b145985ea0ac506380fca6c3d2 (patch)
tree647c86a1935c41680485dbb1f6c1de693a7e6239 /src/printer/printer.h
parent8d219fd7bacea834b70340a44e420c2639ac6285 (diff)
remove options infrastructure code which depended on undefined behavior
appears to be source of crashes on mac
Diffstat (limited to 'src/printer/printer.h')
-rw-r--r--src/printer/printer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/printer/printer.h b/src/printer/printer.h
index fcc0df93c..44e5ac9f4 100644
--- a/src/printer/printer.h
+++ b/src/printer/printer.h
@@ -62,7 +62,7 @@ public:
//
// Options can be null in certain circumstances (e.g., when printing
// the singleton "null" expr. So we guard against segfault
- if(&Options::current() != NULL) {
+ if(not Options::isCurrentNull()) {
if(options::outputLanguage.wasSetByUser()) {
lang = options::outputLanguage();
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback