From 943b9b6651b552a5c55010c7cdb8f8195ad9e9a6 Mon Sep 17 00:00:00 2001 From: Jeff Cohen Date: Sat, 6 May 2006 23:25:53 +0000 Subject: [PATCH] Apply bug fix supplied by Greg Pettyjohn for a bug he found: '' is not a legal path on Windows. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28153 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Archive/Archive.cpp | 2 +- lib/Bytecode/Archive/Archive.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Archive/Archive.cpp b/lib/Archive/Archive.cpp index 6e4d14c6a93..66b9d703a0d 100644 --- a/lib/Archive/Archive.cpp +++ b/lib/Archive/Archive.cpp @@ -39,7 +39,7 @@ ArchiveMember::getMemberSize() const { // This default constructor is only use by the ilist when it creates its // sentry node. We give it specific static values to make it stand out a bit. ArchiveMember::ArchiveMember() - : next(0), prev(0), parent(0), path(""), flags(0), data(0) + : next(0), prev(0), parent(0), path("--invalid--"), flags(0), data(0) { info.user = sys::Process::GetCurrentUserId(); info.group = sys::Process::GetCurrentGroupId(); diff --git a/lib/Bytecode/Archive/Archive.cpp b/lib/Bytecode/Archive/Archive.cpp index 6e4d14c6a93..66b9d703a0d 100644 --- a/lib/Bytecode/Archive/Archive.cpp +++ b/lib/Bytecode/Archive/Archive.cpp @@ -39,7 +39,7 @@ ArchiveMember::getMemberSize() const { // This default constructor is only use by the ilist when it creates its // sentry node. We give it specific static values to make it stand out a bit. ArchiveMember::ArchiveMember() - : next(0), prev(0), parent(0), path(""), flags(0), data(0) + : next(0), prev(0), parent(0), path("--invalid--"), flags(0), data(0) { info.user = sys::Process::GetCurrentUserId(); info.group = sys::Process::GetCurrentGroupId(); -- 2.34.1