Explorar o código

dpkg: Initialize all clientdata members in ensure_package_clientdata()

Although all users of replacingfilesandsaid are previously calling
clear_istobes() to make sure it's initialized, doing so when allocating
clientdata is safer from an API point of view.

Signed-off-by: Guillem Jover <guillem@debian.org>
Raphaël Hertzog %!s(int64=14) %!d(string=hai) anos
pai
achega
ab44807b7a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/filesdb.c

+ 1 - 0
src/filesdb.c

@@ -162,6 +162,7 @@ ensure_package_clientdata(struct pkginfo *pkg)
   pkg->clientdata->color = white;
   pkg->clientdata->fileslistvalid = false;
   pkg->clientdata->files = NULL;
+  pkg->clientdata->replacingfilesandsaid = 0;
   pkg->clientdata->listfile_phys_offs = 0;
   pkg->clientdata->trigprocdeferred = NULL;
 }