]> err.no Git - util-linux/commit
libblkid: does not return useless binary data
authorKarel Zak <kzak@redhat.com>
Fri, 30 Oct 2009 11:20:51 +0000 (12:20 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 30 Oct 2009 11:20:51 +0000 (12:20 +0100)
commitd7be1a742634d74c7434e3e99c5ff93ed5b1f435
tree6928ff35553d6a3428b59d7c36eecf36c250aacc
parent4c3ceac607b3c7c2acef596fa0ffcaaa64bc6d0e
libblkid: does not return useless binary data

Currently, the binary blkid_probe_get_{topology,partitions}() API
returns empty structs when information has not been gathered. This is
confusing for applications. It's seems better to return NULL.

Reported-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/blkid/src/probe.c