randcurl.pl: enable warnings, fix one

This commit is contained in:
Viktor Szakats 2025-07-14 20:08:26 +02:00
parent c566b68a52
commit d099ec75f4
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -18,6 +18,9 @@
# directory where it runs.
#
use strict;
use warnings;
my $curl = "../src/curl";
my $url = "localhost:7777"; # not listening to this
@ -172,6 +175,7 @@ sub runconfig {
my $o = getnum($nopts);
my $option = $opt[$o];
my $ar = "";
$uniq{$option} = 0 if(!exists $uniq{$option});
$uniq{$option}++;
if($arg{$option}) {
$ar = " ".randarg();