]> Dogcows Code - chaz/tar/commitdiff
(make_directory): Fix initialization of struct directory.
authorSergey Poznyakoff <gray@gnu.org.ua>
Wed, 31 May 2006 12:45:14 +0000 (12:45 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Wed, 31 May 2006 12:45:14 +0000 (12:45 +0000)
src/incremen.c

index eadd80fb056065e8baa4116d7af33c52c3094f8f..354caf451a69a58704ddeec3b503c07657c9bc07 100644 (file)
@@ -119,10 +119,12 @@ make_directory (const char *name)
   size_t namelen = strlen (name);
   size_t size = offsetof (struct directory, name) + namelen + 1;
   struct directory *directory = xmalloc (size);
+  directory->contents = directory->icontents = NULL;
+  directory->orig = NULL;
+  directory->flags = false;
   strcpy (directory->name, name);
   if (ISSLASH (directory->name[namelen-1]))
     directory->name[namelen-1] = 0;
-  directory->flags = false;
   return directory;
 }
   
This page took 0.024099 seconds and 4 git commands to generate.