]> granicus.if.org Git - curl/commitdiff
ftpserver.pl: Fixed 'Use of uninitialized value $args in string ne'
authorSteve Holme <steve_holme@hotmail.com>
Sun, 8 Sep 2013 15:39:41 +0000 (16:39 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 8 Sep 2013 15:39:41 +0000 (16:39 +0100)
tests/ftpserver.pl

index 8ca3f8b8ac6f1bbe65b0f372cd0b142a3b5c55a5..9b89e91efad9236f78faf22b178ba4da18b75c2b 100755 (executable)
@@ -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 {