ftpserver.pl: Fixed runtime warning from commit 7da9c95bcf1fe6
authorSteve Holme <steve_holme@hotmail.com>
Sun, 22 Dec 2013 21:40:50 +0000 (21:40 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 22 Dec 2013 21:59:13 +0000 (21:59 +0000)
Use of uninitialized value $FTPARG in concatenation (.) or string at
line 3255.

tests/ftpserver.pl

index 3a4a079..a37802d 100755 (executable)
@@ -3252,7 +3252,7 @@ while(1) {
         my $check = 1; # no response yet
 
         # See if there is a custom reply for the full text
-        my $fulltext = $FTPCMD . " " . $FTPARG;
+        my $fulltext = $FTPARG ? $FTPCMD . " " . $FTPARG : $FTPCMD;
         my $text = $fulltextreply{$fulltext};
         if($text && ($text ne "")) {
             sendcontrol "$text\r\n";