Commit 7b20b4cb authored by Edward Z. Yang's avatar Edward Z. Yang Committed by GitHub
Browse files

Merge pull request #73 from ezyang/pr/fix-segfault

Fix segfault from inconsistent macro use.
parents d73ba584 748e3224
......@@ -110,7 +110,7 @@ char *__hscore_d_name( struct dirent* d )
void __hscore_free_dirent(struct dirent *dEnt)
{
#if HAVE_READDIR_R
#if HAVE_READDIR_R && USE_READDIR_R
free(dEnt);
#endif
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment