aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-09-08 16:39:41 +0100
committerSteve Holme <steve_holme@hotmail.com>2013-09-08 16:39:41 +0100
commitf8986a2b34368e081efa4982f8276551e13a4d29 (patch)
treea2d6095e674b65bc1ed7c6bf6c8e47f3d83cfc0b /tests
parent1b96ce04b26e594005af0fea991cba5f96fe44b4 (diff)
ftpserver.pl: Fixed 'Use of uninitialized value $args in string ne'
Diffstat (limited to 'tests')
-rwxr-xr-xtests/ftpserver.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl
index 8ca3f8b8a..9b89e91ef 100755
--- a/tests/ftpserver.pl
+++ b/tests/ftpserver.pl
@@ -1301,7 +1301,7 @@ sub DELE_pop3 {
logmsg "DELE_pop3 got $msg\n";
- if ($msg eq "") {
+ if (!$msg) {
sendcontrol "-ERR Protocol error\r\n";
}
else {
@@ -1314,7 +1314,7 @@ sub DELE_pop3 {
sub STAT_pop3 {
my ($args) = @_;
- if ($args ne "") {
+ if ($args) {
sendcontrol "-ERR Protocol error\r\n";
}
else {