]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: zeroize errno on blkid_probe_get_buffer() success
authorKarel Zak <kzak@redhat.com>
Tue, 7 Oct 2014 10:44:34 +0000 (12:44 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 7 Oct 2014 10:44:34 +0000 (12:44 +0200)
commit00749bc366fe6106df918660a92a388cfff4f35f
treee69589fe278231e89ef1c62f58535e4022c9ebaf
parentc4604c38b503c8c46e50fc2048ebbcbcfcad3802
libblkid: zeroize errno on blkid_probe_get_buffer() success

Since 37f4060225df0591ab8e1dd676dbc8115d900d4f prober functions are
sensitive to errno, it seems more robust to set errno=0 with in
blkid_probe_get_buffer() on success than set the zero on all places
where we call blkid_probe_get_buffer().

Addresses: https://github.com/karelzak/util-linux/issues/119
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/probe.c