Permalink
Browse files

fixed undef warnings

git-svn-id: svn://svn.tt2.org/tt/Template2/trunk@545 d5a88997-0a34-4036-9ed2-92fb5d660d91
  • Loading branch information...
1 parent 2a86c2c commit 50600af0441e4f723891439d5e74b1007cfb4af0 @abw committed Aug 16, 2002
Showing with 2 additions and 1 deletion.
  1. +2 −1 t/date.t
View
@@ -57,7 +57,8 @@ my $params = {
# some systems expect locales to have a particular suffix
for my $suffix ('', @Template::Plugin::Date::LOCALE_SUFFIX) {
my $try_locale = $locale.$suffix;
- if ($try_locale eq &POSIX::setlocale(&POSIX::LC_ALL, $try_locale)) {
+ my $setlocale = &POSIX::setlocale(&POSIX::LC_ALL, $try_locale);
+ if (defined $setlocale && $try_locale eq $setlocale) {
$locale = $try_locale;
last;
}

0 comments on commit 50600af

Please sign in to comment.