restore-uninitialized-var-20081018
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 18 Oct 2008 16:23:13 +0000 (16:23 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 18 Oct 2008 16:23:13 +0000 (16:23 +0000)
LICENSE MIT

'last' must be initialized.  do so.

src/bucoord/restore.c

index 0fc3135..913cf36 100644 (file)
@@ -164,7 +164,8 @@ bc_Restorer(aindex)
     afs_int32 tapedumpid, parent;
 
     afs_int32 nentries = 0;
-    afs_int32 last, next, ve, vecount;
+    afs_int32 last = 0;
+    afs_int32 next, ve, vecount;
     struct bc_tapeItem *ti, *pti, *nti;
     struct bc_tapeList *tapeList = (struct bc_tapeList *)0;
     struct bc_tapeList *tle, *ptle, *ntle;