Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed undef warnings
git-svn-id: svn://svn.tt2.org/tt/Template2/trunk@545 d5a88997-0a34-4036-9ed2-92fb5d660d91
  • Loading branch information
abw committed Aug 16, 2002
1 parent 2a86c2c commit 50600af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/date.t
Expand Up @@ -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;
}
Expand Down

0 comments on commit 50600af

Please sign in to comment.