]> granicus.if.org Git - php/commitdiff
Libc5-readdir_r workaround
authorSascha Schumann <sas@php.net>
Mon, 11 Sep 2000 15:24:28 +0000 (15:24 +0000)
committerSascha Schumann <sas@php.net>
Mon, 11 Sep 2000 15:24:28 +0000 (15:24 +0000)
ext/session/mod_files.c

index dbb5f6929042b87a7120f896200c6f4c2964f5ab..70554a2b072b5c068eb8f256b4718498ab8c2e6f 100644 (file)
@@ -151,7 +151,7 @@ static int ps_files_cleanup_dir(const char *dirname, int maxlifetime)
 {
        DIR *dir;
        char dentry[sizeof(struct dirent) + MAXPATHLEN + 1];
-       struct dirent *entry;
+       struct dirent *entry = (struct dirent *) &dentry;
        struct stat sbuf;
        char buf[MAXPATHLEN];
        time_t now;