]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
don't check $@ after pagespec_translate
authorJoey Hess <joey@gnu.kitenet.net>
Mon, 29 Mar 2010 00:23:22 +0000 (20:23 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Mon, 29 Mar 2010 00:23:22 +0000 (20:23 -0400)
pagespec_translate may set $@ if it fails to parse a pagespec, but
due to memoization, this is not reliable. If a memoized call is repeated,
and $@ is already set for some other reason previously, it will remain
set through the call to pagespec_translate.

Instead, just check if pagespec_translate returns undef.


No differences found