Skip to content

Commit

Permalink
Bug fix null-pointer deref
Browse files Browse the repository at this point in the history
  • Loading branch information
linas committed Mar 26, 2024
1 parent d21132c commit 99c6645
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion link-grammar/dict-atomese/lookup-atomese.cc
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ Dict_node * as_lookup_list(Dictionary dict, const char *s)
}
}

// If we are here, then thre are only pairs, no sections.
// If we are here, then there are only pairs, no sections.
if (cpr)
{
Dict_node * dn = dict_node_new();
Expand Down
1 change: 1 addition & 0 deletions link-grammar/dict-atomese/word-pairs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ static Exp* get_sent_pair_exprs(Dictionary dict, const Handle& germ,
const HandleSeq& sent_words)
{
Exp* allexp = get_pair_exprs(dict, germ);
if (nullptr == allexp) return allexp;

// Wrap the pair-expressions with a solitary AND-node from the
// temporary Sentance::Exp_pool, as otherwise the operand_next
Expand Down

0 comments on commit 99c6645

Please sign in to comment.