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."
This commit is contained in:
Curtis Gedak 2010-09-21 11:19:42 -06:00
parent 06d4e1e100
commit d040e4e584
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) ;