summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch2/Util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IcePatch2/Util.cpp')
-rw-r--r--cpp/src/IcePatch2/Util.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/IcePatch2/Util.cpp b/cpp/src/IcePatch2/Util.cpp
index d429f3d3768..2462007df90 100644
--- a/cpp/src/IcePatch2/Util.cpp
+++ b/cpp/src/IcePatch2/Util.cpp
@@ -340,6 +340,11 @@ IcePatch2::simplify(const string& path)
bool
IcePatch2::isAbsolute(const string& pa)
{
+ if(pa.empty())
+ {
+ return false;
+ }
+
unsigned i = 0;
while(isspace(pa[i]))
{