Avoid closedir being called with NULL argument if DoMkDir fails.
commitd8c8c31279884a3e7ae25a418171acd603b52a63
authorweissms <weissms@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Mon, 28 Feb 2011 17:41:08 +0000 (28 17:41 +0000)
committerweissms <weissms@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Mon, 28 Feb 2011 17:41:08 +0000 (28 17:41 +0000)
tree9585886f513f18f3682789ea0ba8ff8270d103a7
parent6327899b29611dfb26a05de2b53c4876bd077e6e
Avoid closedir being called with NULL argument if DoMkDir fails.

fh->type will be set by DoMkDir on success. Darwins closedir does
not like being called with NULL and it could happen with mkdir
command being called on an already existing directory.

git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@37281 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
arch/all-hosted/devs/filesys/emul_handler/emul_handler.c