summaryrefslogtreecommitdiff
path: root/decoder/cfg.cc
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-11 03:14:27 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-11 03:14:27 +0000
commitd8f81c1ec7b19511bfb1ae77bfd8c225d1c2efab (patch)
tree2470535025dd90f21dc12da12c355968e8150e15 /decoder/cfg.cc
parentfd2fcc1ba58dcd385390b9cb0123868e4c59416e (diff)
do not print NULL binarized cfg TRule
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@519 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/cfg.cc')
-rwxr-xr-xdecoder/cfg.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/cfg.cc b/decoder/cfg.cc
index 147fa1a0..3ee3a94b 100755
--- a/decoder/cfg.cc
+++ b/decoder/cfg.cc
@@ -129,7 +129,7 @@ void CFG::PrintRule(std::ostream &o,RuleHandle rulei,CFGFormat const& f) const {
f.print_rhs(o,*this,r.rhs.begin(),r.rhs.end());
f.print_features(o,r.p,r.f);
#if CFG_DEBUG
- o<<f.partsep<<*r.rule;
+ if (r.rule) o<<f.partsep<<*r.rule;
#endif
}