chiark / gitweb /
locale: make sure that l is freed
[elogind.git] / src / journal / journald.c
index 74c80f5a085a8b0b765656cfcb8c0ce4ca525127..164e1087d108879b70d9e7f59dfbc852e0120a1c 100644 (file)
@@ -141,9 +141,10 @@ static uint64_t available_space(Server *s) {
 
         for (;;) {
                 struct stat st;
-                struct dirent buf, *de;
+                struct dirent *de;
+                union dirent_storage buf;
 
-                r = readdir_r(d, &buf, &de);
+                r = readdir_r(d, &buf.de, &de);
                 if (r != 0)
                         break;