Skip to content

Commit

Permalink
Merge pull request #2107 from mgreter/bugfix/issue_2106
Browse files Browse the repository at this point in the history
Fix endless loop in `join_paths` (fixes #2106)
  • Loading branch information
mgreter authored Jun 18, 2016
2 parents 38fd793 + 32ceedc commit c6a8169
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ namespace Sass {
bool is_slash = pos + 2 == L && (l[pos+1] == '/' || l[pos+1] == '\\');
bool is_self = pos + 3 == L && (l[pos+1] == '.');
if (!is_self && !is_slash) r = r.substr(3);
else if (pos == std::string::npos) break;
l = l.substr(0, pos == std::string::npos ? pos : pos + 1);
}

Expand Down

0 comments on commit c6a8169

Please sign in to comment.