From: Steve Holme Date: Sun, 8 Sep 2013 15:39:41 +0000 (+0100) Subject: ftpserver.pl: Fixed 'Use of uninitialized value $args in string ne' X-Git-Tag: curl-7_33_0~138 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f8986a2b34368e081efa4982f8276551e13a4d29;p=curl ftpserver.pl: Fixed 'Use of uninitialized value $args in string ne' --- 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 {