Showing the changes to src/core/util_string.cpp (1 of 1 file). Show all
Unified · Split
| @@ -668,6 +668,6 @@ t_CKBOOL is_absolute_path( const std::string & path ) · 667 unmodified lines | ||
| 668 | 668 | return false; |
| 669 | 669 | #else |
| 670 | 670 | // does the path begin with '/'? |
| 671 | − return( workingDir.length() != 0 && workingDir[0] == '/' ); | |
| 671 | + return( path.length() != 0 && path[0] == '/' ); | |
| 672 | 672 | #endif |
| 673 | 673 | } |