ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: mceachen on August 21, 2022, 03:21:22 PM

Title: New "use of uninitialized value $val" warning in v12.44
Post by: mceachen on August 21, 2022, 03:21:22 PM
Thanks (as always) for your work on ExifTool!

I'm seeing a new warning from some images with v12.44 when trying to edit GPS lat/lon:

$ ./exiftool -ignoreMinorErrors -GPSLatitude=  -OffsetTime=-05:00 /tmp/img.jpg
Warning: Use of uninitialized value $val in numeric lt (<) for GPS:GPSLatitudeRef in Composite:GPSLatitude (WriteAlso)

I've attatched img.jpg. This warning isn't emitted with v12.43 or earlier.

It looks like this is the issue:

<https://github.com/exiftool/exiftool/blame/master/lib/Image/ExifTool/GPS.pm#L371>


Title: Re: New "use of uninitialized value $val" warning in v12.44
Post by: Phil Harvey on August 21, 2022, 09:13:20 PM
Thank you.  I'll fix this in the next release.  But note that this warning shouldn't cause any problems, and ExifTool 12.44 should behave the same as 12.43 for this command.

- Phil