sm-sorcery-bugs AT lists.ibiblio.org
Subject: Bugs for Sorcery are reported here
List archive
[SM-Sorcery-Bugs] [Bug 12669] New: codex_does_spell_exist doesn't handle null/"" properly
- From: bugzilla-daemon AT bugs.sourcemage.org
- To: sm-sorcery-bugs AT lists.ibiblio.org
- Subject: [SM-Sorcery-Bugs] [Bug 12669] New: codex_does_spell_exist doesn't handle null/"" properly
- Date: 11 Jun 2006 11:24:51 -0000
http://bugs.sourcemage.org/show_bug.cgi?id=12669
Summary: codex_does_spell_exist doesn't handle null/"" properly
Product: Sorcery
Version: 1.14.x
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: subroutines
AssignedTo: sm-sorcery-bugs AT lists.ibiblio.org
ReportedBy: jakakranjc AT email.si
$ codex_does_spell_exist && echo ja
ja
$ codex_does_spell_exist "" && echo ja
ja
$ codex_does_spell_exist $EAETRGD && echo ja
ja
$
when nothing or an empty string is passed, it still says that it's an
exsisting
spell.
$ a(){ for i in $* ; do echo "--$i--";done; }
$ a ""
$ a
$ a $VFZWTDBVYXC
$ a 3
--3--
$ a 3 "" 34
--3--
--34--
$
So it sets the return value to 0, but then skips the whole validation loop
and
returns 0.
--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
- [SM-Sorcery-Bugs] [Bug 12669] New: codex_does_spell_exist doesn't handle null/"" properly, bugzilla-daemon, 06/11/2006
Archive powered by MHonArc 2.6.24.