
<     simple_recursive_removal(dir, NULL);
---
>     if (dir)
>         simple_recursive_removal(dir, NULL);
