diff options
author | Phlosioneer <mattmdrr2@gmail.com> | 2019-03-04 00:21:34 -0500 |
---|---|---|
committer | huderlem <huderlem@gmail.com> | 2019-03-07 08:46:55 -0600 |
commit | b0c634d5318019f17547a758084fdcfb5a387c24 (patch) | |
tree | d8588c8e9b6eb4411d37193a4f12b718491f3674 /tools/scaninc/scaninc.cpp | |
parent | 105e1721d665d8386afd47882020c51d6d97c522 (diff) |
Support absolute paths
Diffstat (limited to 'tools/scaninc/scaninc.cpp')
-rw-r--r-- | tools/scaninc/scaninc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/scaninc/scaninc.cpp b/tools/scaninc/scaninc.cpp index 0d55d11f6..696842dc9 100644 --- a/tools/scaninc/scaninc.cpp +++ b/tools/scaninc/scaninc.cpp @@ -62,7 +62,7 @@ int main(int argc, char **argv) argv++; includeDir = std::string(argv[0]); } - if (includeDir.back() != '/') + if (!includeDir.empty() && includeDir.back() != '/') { includeDir += '/'; } |