Network preferences: Uninitialized pointers.
CID 1251080, 1251077, 1251076, 1251075, 1251068
This commit is contained in:
parent
81a96270e5
commit
babb221d62
@ -12,24 +12,36 @@
|
||||
NetworkSetupProfile::NetworkSetupProfile()
|
||||
:
|
||||
fRoot(new BEntry()),
|
||||
fPath(new BPath())
|
||||
fPath(new BPath()),
|
||||
fName(NULL),
|
||||
fIsCurrent(false),
|
||||
fIsDefault(false)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
NetworkSetupProfile::NetworkSetupProfile(const char* path)
|
||||
:
|
||||
fIsCurrent(false),
|
||||
fIsDefault(false)
|
||||
{
|
||||
SetTo(path);
|
||||
}
|
||||
|
||||
|
||||
NetworkSetupProfile::NetworkSetupProfile(const entry_ref* ref)
|
||||
:
|
||||
fIsCurrent(false),
|
||||
fIsDefault(false)
|
||||
{
|
||||
SetTo(ref);
|
||||
}
|
||||
|
||||
|
||||
NetworkSetupProfile::NetworkSetupProfile(BEntry* entry)
|
||||
:
|
||||
fIsCurrent(false),
|
||||
fIsDefault(false)
|
||||
{
|
||||
SetTo(entry);
|
||||
}
|
||||
@ -38,6 +50,7 @@ NetworkSetupProfile::NetworkSetupProfile(BEntry* entry)
|
||||
NetworkSetupProfile::~NetworkSetupProfile()
|
||||
{
|
||||
delete fRoot;
|
||||
delete fPath;
|
||||
}
|
||||
|
||||
|
||||
@ -63,6 +76,8 @@ NetworkSetupProfile::SetTo(BEntry *entry)
|
||||
delete fRoot;
|
||||
delete fPath;
|
||||
fRoot = entry;
|
||||
fPath = NULL;
|
||||
fName = NULL;
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user