From d672bbd8766ec2fc9ec6464d5363fab557e2df18 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 9 Jul 2025 22:03:45 +0200 Subject: [PATCH] memanalyze.pl: try fixing a warning ``` Use of uninitialized value $sizeataddr{"5600c1703d38"} in numeric gt (>) at ../../tests/memanalyze.pl line 178, <$fileh> line 1. Use of uninitialized value $sizeataddr{"5600c1703d38"} in numeric gt (>) at ../../tests/memanalyze.pl line 178, <$fileh> line 1. ``` https://github.com/curl/curl/actions/runs/16178889943/job/45670573824?pr=17877#step:39:163 --- tests/memanalyze.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/memanalyze.pl b/tests/memanalyze.pl index d5cd929c6d..d65ef39afe 100755 --- a/tests/memanalyze.pl +++ b/tests/memanalyze.pl @@ -175,13 +175,13 @@ while(<$fileh>) { $size = $1; $addr = $2; - if($sizeataddr{$addr}>0) { + if($sizeataddr{$addr} && $sizeataddr{$addr}>0) { # this means weeeeeirdo print "Mixed debug compile ($source:$linenum at line $lnum), rebuild curl now\n"; print "We think $sizeataddr{$addr} bytes are already allocated at that memory address: $addr!\n"; } - $sizeataddr{$addr}=$size; + $sizeataddr{$addr} = $size; $totalmem += $size; $memsum += $size;