New "use of uninitialized value $val" warning in v12.44

Started by mceachen, August 21, 2022, 03:21:22 PM

Previous topic - Next topic

mceachen

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>



Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).