From 7c12d43a42f47635f581a0a1514bdbabbc876c17 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 20 Dec 2009 09:38:39 +0000 Subject: [PATCH] 2009-12-20 Tatsuhiro Tsujikawa Assigned BObject in BDE() to avoid segmentation fault when calling methods of BDE::none(). * src/BDE.cc --- ChangeLog | 6 ++++++ src/BDE.cc | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 86193495..5a076bc9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-12-20 Tatsuhiro Tsujikawa + + Assigned BObject in BDE() to avoid segmentation fault when calling + methods of BDE::none(). + * src/BDE.cc + 2009-12-18 Tatsuhiro Tsujikawa Show info hash in Magnet URI in upper case letters in -S output. diff --git a/src/BDE.cc b/src/BDE.cc index ad6b226e..251f46ea 100644 --- a/src/BDE.cc +++ b/src/BDE.cc @@ -39,7 +39,7 @@ namespace aria2 { const BDE BDE::none; -BDE::BDE():_type(TYPE_NONE) {} +BDE::BDE():_type(TYPE_NONE), _bobject(new BObject()) {} BDE::BDE(Integer integer):_type(TYPE_INTEGER), _bobject(new BInteger(integer)) {}