mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
The return code of util_file_read_l() isn't checked and therefore 'value' could contain anything in case of an error. Check the return code and set 'value' to 0 in the error case. Fixes: https://github.com/ibm-s390-linux/s390-tools/issues/110 Reviewed-by: Stefan Haberland <sth@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>