all: fix error checking in gl/lib/xdectoint.c
commit9b9763e6a7499d78373fb42bac3dc2ee68a14b69
authorPádraig Brady <P@draigBrady.com>
Wed, 28 Aug 2024 11:33:17 +0000 (28 12:33 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 28 Aug 2024 11:35:07 +0000 (28 12:35 +0100)
treef24e537cf561a2ac89b22b3a4f6c2626629f2eba
parentffc7b6a6e9250efd2dc491100f98641d05b90c38
all: fix error checking in gl/lib/xdectoint.c

This issue was noticed with -flto on GCC 14.2.1

* gl/lib/xdectoint.c (__xnumtoint): Only inspect the
returned value if LONGINT_INVALID is not set,
as the returned value is uninitialized in that case.
Fixes https://bugs.gnu.org/72842
gl/lib/xdectoint.c