message: check if location is present before accessing it
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>
Fri, 22 Nov 2024 13:21:27 +0000 (14:21 +0100)
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>
Fri, 22 Nov 2024 13:21:27 +0000 (14:21 +0100)
commitcf50dd70ca1656bad5840e9a7fb7ec8955732226
tree5cc12c24ba574da2904b6b815850a47818c062c8
parenta32b9446ea1260d23f1415798eaaced92c399395
message: check if location is present before accessing it

The message location is accessed without checking if the
location is actually present. I added a check if the message
location is there. Thanks to Simon Jacobs for reporting the
bug!

Closes: https://savannah.gnu.org/bugs/?66239
src/libpspp/message.c