Better failing gracefully instead of hard crash via segfault. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>