[gparted] Use direct assignment for string in class initialization
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Use direct assignment for string in class initialization
- Date: Tue, 21 Sep 2010 17:21:00 +0000 (UTC)
commit d040e4e5847905f58207e093917b6c3d36e641d7
Author: Curtis Gedak <gedakc gmail com>
Date: Tue Sep 21 11:19:42 2010 -0600
Use direct assignment for string in class initialization
Change string initialization to use direct assignment instead of
a class method in the GParted_Core class initialization.
Thanks go to Jan Claeys for pointing out this potential problem
and providing the following link:
https://bugzilla.gnome.org/show_bug.cgi?id=627724#c7
This link contains a comment by Matthias Clasen that says:
"In a class init function, don't do anything that causes
other threads to initialize classed types."
src/GParted_Core.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc
index 9342a2a..4f81fde 100644
--- a/src/GParted_Core.cc
+++ b/src/GParted_Core.cc
@@ -63,7 +63,7 @@ GParted_Core::GParted_Core()
lp_disk = NULL ;
lp_partition = NULL ;
p_filesystem = NULL ;
- set_thread_status_message("") ;
+ thread_status_message = "" ;
ped_exception_set_handler( ped_exception_handler ) ;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]