From: Sergey Poznyakoff Date: Wed, 31 May 2006 12:45:14 +0000 (+0000) Subject: (make_directory): Fix initialization of struct directory. X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=a23a95b4a0a3ac0aa9005fef91fae01ad1516759;p=chaz%2Ftar (make_directory): Fix initialization of struct directory. --- diff --git a/src/incremen.c b/src/incremen.c index eadd80f..354caf4 100644 --- a/src/incremen.c +++ b/src/incremen.c @@ -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; }