The analyzer warnings (possible NULL dereference) are probably just false alarms. But for safety adding assert()'s, which don't cost us anything in non-debug builds. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>