tempdir: Avoid strlen(NULL) in case the tempdir was never created (#168)
tempdir: Avoid strlen(NULL) in case the tempdir was never created (#168)

* tempdir: Avoid strlen(NULL) in case the tempdir was never created

* tempdir: call closedir() when done

raboof/notion,raboof/notion,knixeur/notion,raboof/notion,knixeur/notion,knixeur/notion,knixeur/notion,knixeur/notion,raboof/notion