]> arthur.barton.de Git - bup.git/commit
Initialize MetaStoreWriter self._file to None
authorRob Browning <rlb@defaultvalue.org>
Wed, 14 May 2014 17:01:10 +0000 (12:01 -0500)
committerRob Browning <rlb@defaultvalue.org>
Wed, 14 May 2014 17:20:02 +0000 (12:20 -0500)
commit030121915d53399f84a19bcdfc4951a72d38d3e1
tree3250d37fe82dc2de7e8885ed74bb8bc3ecee0bc7
parenta5189a69a8e37f7ed5b43af314f9ec35bbfbb910
Initialize MetaStoreWriter self._file to None

Without this, if something goes wrong in the constructor self._file
may not be initialized, which causes close(), invoked via __del__(),
to crash.

Thanks to Fabian Bakkum <fabianbakkum@hotmail.com> for reporting the
problem.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/index.py