dir-create-initialize-null-to-avoid-drelease-on-garbage-20020218
authorDerrick Brashear <shadow@dementia.org>
Mon, 18 Feb 2002 21:09:47 +0000 (21:09 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 18 Feb 2002 21:09:47 +0000 (21:09 +0000)
if FindItem returns without setting previtem this is never initialized

src/dir/dir.c

index 91271a3..4b98d16 100644 (file)
@@ -140,7 +140,7 @@ afs_int32 *vfid; {
     int blobs, firstelt;
     register int i;
     register struct DirEntry *ep;
-    unsigned short *pp;
+    unsigned short *pp = NULL;
     register struct DirHeader *dhp;
 
     /* check name quality */