From c195908744948c121e498066ef316473ce743dea Mon Sep 17 00:00:00 2001 From: acli Date: Tue, 10 Feb 2004 09:36:44 +0000 Subject: [PATCH] Arrays are always defined. We should check its length instead. --- misc/translator/tmpl_process.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/translator/tmpl_process.pl b/misc/translator/tmpl_process.pl index d1b508247b..b82dd12177 100755 --- a/misc/translator/tmpl_process.pl +++ b/misc/translator/tmpl_process.pl @@ -30,7 +30,7 @@ my %strhash = (); # Checks for missing input and string list arguments -if( !defined(@in_files) || !defined($str_file) ) +if( !@in_files || !defined($str_file) ) { usage("You must at least specify input and string list filenames."); } -- 2.39.2