PackageLinkSymlink: Init fLinkPath in constructor

This commit is contained in:
Ingo Weinhold
2011-11-25 06:19:14 +01:00
parent 670b0d106a
commit ac490e3bb9
@@ -21,6 +21,8 @@ static const char* const kSystemLinkPath = "../..";
static const char* const kCommonLinkPath = "../../../common"; static const char* const kCommonLinkPath = "../../../common";
static const char* const kHomeLinkPath = "../../../home/config"; static const char* const kHomeLinkPath = "../../../home/config";
static const char* const kUnknownLinkTarget = "?";
static const char* static const char*
link_path_for_mount_type(MountType type) link_path_for_mount_type(MountType type)
@@ -44,7 +46,8 @@ link_path_for_mount_type(MountType type)
PackageLinkSymlink::PackageLinkSymlink(Package* package) PackageLinkSymlink::PackageLinkSymlink(Package* package)
: :
Node(0) Node(0),
fLinkPath(kUnknownLinkTarget)
{ {
Update(package, NULL); Update(package, NULL);
} }
@@ -62,7 +65,7 @@ PackageLinkSymlink::Update(Package* package, PackageLinksListener* listener)
fLinkPath = link_path_for_mount_type( fLinkPath = link_path_for_mount_type(
package->Domain()->Volume()->MountType()); package->Domain()->Volume()->MountType());
} else } else
fLinkPath = "?"; fLinkPath = kUnknownLinkTarget;
get_real_time(fModifiedTime); get_real_time(fModifiedTime);