diff options
author | Michael Vogt <mvo@debian.org> | 2013-08-05 22:37:39 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2013-08-05 22:37:39 +0200 |
commit | dbcf60b2c314521ab809d50d228c0c98ce8f6915 (patch) | |
tree | 83ac6e7d6fd65c8986a5c667e55151daadf0bd9e | |
parent | e993aa1d28923deede2387d58d5fa123ad79d6c4 (diff) | |
download | python-apt-dbcf60b2c314521ab809d50d228c0c98ce8f6915.tar.gz |
coverity fixes
-rw-r--r-- | python/cache.cc | 2 | ||||
-rw-r--r-- | python/pkgmanager.cc | 2 | ||||
-rw-r--r-- | python/progress.h | 2 | ||||
-rw-r--r-- | python/tarfile.cc | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/python/cache.cc b/python/cache.cc index e527faba..01330adb 100644 --- a/python/cache.cc +++ b/python/cache.cc @@ -46,7 +46,7 @@ template<typename T> struct IterListStruct unsigned long LastIndex; IterListStruct(T const &I) : Iter(I), LastIndex(0) {} - IterListStruct() {}; + IterListStruct() : LastIndex(0) {}; bool move(unsigned long Index) { if (Index < 0 || (unsigned)Index >= Count()) diff --git a/python/pkgmanager.cc b/python/pkgmanager.cc index f51dbbbc..9a5d0e5b 100644 --- a/python/pkgmanager.cc +++ b/python/pkgmanager.cc @@ -203,7 +203,7 @@ public: bool callConfigure(PkgIterator Pkg) { return pkgDPkgPM::Configure(Pkg); } pkgOrderList *getOrderList() { return pkgPackageManager::List; } - PyPkgManager(pkgDepCache *Cache) : pkgDPkgPM(Cache) {}; + PyPkgManager(pkgDepCache *Cache) : pkgDPkgPM(Cache),pyinst(NULL) {}; PyObject *pyinst; }; diff --git a/python/progress.h b/python/progress.h index af8e3acc..b46ac982 100644 --- a/python/progress.h +++ b/python/progress.h @@ -46,7 +46,7 @@ class PyCallbackObj { bool RunSimpleCallback(const char *method, PyObject *arglist=NULL, PyObject **result=NULL); - PyCallbackObj() : callbackInst(0) {}; + PyCallbackObj() : callbackInst(0), _save(0) {}; ~PyCallbackObj() {Py_DECREF(callbackInst); }; }; diff --git a/python/tarfile.cc b/python/tarfile.cc index bd903b57..920f032e 100644 --- a/python/tarfile.cc +++ b/python/tarfile.cc @@ -56,7 +56,7 @@ public: unsigned long Size,unsigned long Pos); PyDirStream(PyObject *callback, const char *member=0) : callback(callback), - py_data(0), member(member), error(false), copy(0) + py_data(0), member(member), error(false), copy(0), copy_size(0) { Py_XINCREF(callback); } |