diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-11-01 07:44:22 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-11-01 07:44:22 -0700 |
commit | 0f482cf241584b58b7a9a8e97b32b7123b1cbe25 (patch) | |
tree | ac3b20868ba54388ac0a7f09cd200b27db4771b1 /tests/008/students.txr | |
parent | af26ff8c2bc0741eaca3a3f3c59ddd60227f38a3 (diff) | |
download | txr-0f482cf241584b58b7a9a8e97b32b7123b1cbe25.tar.gz txr-0f482cf241584b58b7a9a8e97b32b7123b1cbe25.tar.bz2 txr-0f482cf241584b58b7a9a8e97b32b7123b1cbe25.zip |
less: symbolic arguments: fix crash and incorrectness.
* lib.c (less): We cannot direclty access right->s.package
because the right operand can be nil. This causes a crash.
Furthermore, the separate NIL case is wrong. If the left
object is nil, the same logic must be carried out as for SYM.
The opposite operand might have the same name, and so packages
have to be compared. We simply merge the two cases, and make
sure we use the proper accessors symbol_name and
symbol_package to avoid blowing up on nil.
Diffstat (limited to 'tests/008/students.txr')
0 files changed, 0 insertions, 0 deletions