gpt-auto: handle errors from blkid more correctly
authorLennart Poettering <lennart@poettering.net>
Wed, 3 Feb 2016 19:34:04 +0000 (20:34 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 3 Feb 2016 22:58:25 +0000 (23:58 +0100)
commit59e73c5b102402ea18aec1f4d69b4daad574e82b
tree56b6b059b6b97516f3df4d2ef913d35c5d23c54f
parent2b26a72816aac6d28f44460ffe28882f006489c8
gpt-auto: handle errors from blkid more correctly

Let's make sure we don't choke if blkid_probe_lookup_value() returns a NULL string.

Also, make sur we propagate the correct error when blkid_probe_lookup_value() fails.
src/gpt-auto-generator/gpt-auto-generator.c