When doing an if-test on the result of a function which returns a string
authorPeter Maydell <pmaydell@chiark.greenend.org.uk>
Sun, 3 Aug 2008 13:32:17 +0000 (13:32 +0000)
committerPeter Maydell <pmaydell@chiark.greenend.org.uk>
Sun, 3 Aug 2008 13:32:17 +0000 (13:32 +0000)
commit4f653e8f897068fc803607a5975fa18ab1519bcf
tree9157c8117500f84788d4c82277e24ab23e54781e
parenta107dc40d92e7a37be148816db160325326318e3
When doing an if-test on the result of a function which returns a string
result, check whether the string is non-empty (as the documentation says we
do). Previously we were always testing the integer 'value'.
ChangeLog
sbr/fmt_compile.c
test/tests/repl/test-if-str [new file with mode: 0644]