Skip to content

Commit

Permalink
Merge pull request #228 from burrbull/fix_null
Browse files Browse the repository at this point in the history
fix bug in scan_otl_tag
  • Loading branch information
burrbull authored Nov 28, 2019
2 parents 8ef0d2f + ccadf45 commit db68fb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dpx/src/dpx_tt_gsub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,7 @@ fn scan_otl_tag(otl_tags: &[u8]) -> Result<(Vec<u8>, Vec<u8>, Vec<u8>), ()> {
language = vec![b'*'];
}
/* Finally feature */
let feature = if p.len() < 5 {
let feature = if p.len() >= 4 {
Vec::from(p)
} else {
warn!("No valid OTL feature tag specified.");
Expand Down

0 comments on commit db68fb4

Please sign in to comment.