[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#229791: apt: StatusFile needs initialization in debSystem constructor



Package: apt
Version: 0.5.21
Severity: normal
Tags: patch

debSystem::StatusFile is never initialized
It works OK when the library is used through apt-get et al, but when you 
surclass it and allocate it on the heap, it crashes.

Just adding
  StatusFile = 0;
in the debSystem constructor fixed the problem here.

Thanks to all for this great tool :)

-- Package-specific info:

-- (/etc/apt/preferences present, but not submitted) --


-- (/etc/apt/sources.list present, but not submitted) --


-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux doudou.lapinot.org 2.4.24-ck1 #1 dim jan 18 10:59:24 CET 2004 i686
Locale: LANG=us_US.UTF-8, LC_CTYPE=fr_FR.UTF-8 (ignored: LC_ALL set to fr_FR.UTF-8)

Versions of packages apt depends on:
ii  libc6                      2.3.2.ds1-11  GNU C Library: Shared libraries an
ii  libgcc1                    1:3.3.3-0pre2 GCC support library
ii  libstdc++5                 1:3.3.3-0pre2 The GNU Standard C++ Library v3

-- no debconf information




Reply to: