
<     simple_recursive_removal(dir, NULL);
---
>     if (!dir)
>         return -ENOENT;
>     simple_recursive_removal(dir, NULL);
