[gparted] Unitialized value in OperationDetail::OperationDetail
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Unitialized value in OperationDetail::OperationDetail
- Date: Tue, 5 Oct 2010 19:05:18 +0000 (UTC)
commit 29e4329182cfaeb443ae5537e114ac13a22d84e4
Author: Seth Heeren <sgheeren hotmail com>
Date: Sun Oct 3 02:50:24 2010 +0200
Unitialized value in OperationDetail::OperationDetail
src/OperationDetail.cc | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/OperationDetail.cc b/src/OperationDetail.cc
index 8c4372f..62766e5 100644
--- a/src/OperationDetail.cc
+++ b/src/OperationDetail.cc
@@ -24,6 +24,7 @@ namespace GParted
OperationDetail::OperationDetail()
{
+ status = STATUS_NONE; // prevent uninitialized member access
set_status( STATUS_NONE ) ;
fraction = -1 ;
time_elapsed = -1 ;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]