Improve error handling
authorWouter Verhelst <w@uter.be>
Wed, 24 Dec 2008 15:04:59 +0000 (16:04 +0100)
committerWouter Verhelst <w@uter.be>
Wed, 24 Dec 2008 15:30:45 +0000 (16:30 +0100)
commit9075f83ce93ebb68897dcce92878963adafefbb5
tree32409b8389588a4baeb4b220aa720f5a285dec48
parent9739515e730dcb178c1c329e7e9b283fbd152623
Improve error handling

If a config file does not even contain a single session,
g_key_file_get_start_group() will return NULL, resulting in a segfault
if we feed that to strcmp. Check for that possibility.

This closes Fedora bug #454099, BTW. Merry christmas ;-)
nbd-server.c