[pan2/testing: 121/279] fixed a few segfaults
- From: Heinrich MÃller <henmull src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan2/testing: 121/279] fixed a few segfaults
- Date: Sat, 3 Dec 2011 22:32:21 +0000 (UTC)
commit 4093ea9d93ef4057bdeaf753dab265cc424aaecc
Author: Heinrich MÃller <sphemuel stud informatik uni-erlangen de>
Date: Tue Jun 28 10:35:20 2011 +0200
fixed a few segfaults
pan/tasks/encoder.cc | 11 -----------
pan/tasks/task-upload.cc | 9 ++++++---
2 files changed, 6 insertions(+), 14 deletions(-)
---
diff --git a/pan/tasks/encoder.cc b/pan/tasks/encoder.cc
index 430d277..f131033 100644
--- a/pan/tasks/encoder.cc
+++ b/pan/tasks/encoder.cc
@@ -102,17 +102,6 @@ Encoder :: enqueue (TaskUpload * task,
const TaskUpload::EncodeMode & enc)
{
-
-
-// if (needed->size() == 0)
-// {
-// char buf[2048];
-// g_snprintf(buf, 2048, _("Error encoding %s: No parts selected to post"), basename.c_str());
-// log_errors.clear();
-// log_errors.push_back(buf); // log error
-// return;
-// }
-
disable_progress_update ();
this->task = task;
diff --git a/pan/tasks/task-upload.cc b/pan/tasks/task-upload.cc
index c065d98..7960ad1 100644
--- a/pan/tasks/task-upload.cc
+++ b/pan/tasks/task-upload.cc
@@ -161,13 +161,16 @@ TaskUpload :: update_work (NNTP* checkin_pending)
if (!_encoder && !_encoder_has_run)
{
_state.set_need_encoder();
- } else if(working)
+ }
+ else if(working)
{
_state.set_working();
- } else if (_encoder_has_run && !_needed.empty())
+ }
+ else if (_encoder_has_run && !_needed.empty())
{
_state.set_need_nntp(_server);
- } else if (_needed.empty())
+ }
+ else if (_needed.empty())
{
_state.set_completed();
set_finished(_queue_pos);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]