Even though chances are really low it's ever getting hit, it's still safer to have some sanity checks (which don't cost us much) than risking segfault. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>