diff --git a/onvif/scripts/zmonvif-probe.pl b/onvif/scripts/zmonvif-probe.pl index 94b5fdd19..c1f39c020 100755 --- a/onvif/scripts/zmonvif-probe.pl +++ b/onvif/scripts/zmonvif-probe.pl @@ -373,8 +373,9 @@ else { # all other actions need URI and credentials my $url_svc_device = shift; $soap_version = shift; - my $username = shift; + my $username = @_ ? shift : ''; my $password = @_ ? shift : ''; +print "Username: $username"; $client = ONVIF::Client->new( { 'url_svc_device' => $url_svc_device,