diff --git a/core/AmUtils.cpp b/core/AmUtils.cpp index 01f9ecf0..89b93194 100644 --- a/core/AmUtils.cpp +++ b/core/AmUtils.cpp @@ -523,7 +523,7 @@ string add2path( const string& path, int n_suffix, ...) const char* s = va_arg(ap,const char*); - if(!path.empty() && (path[path.length()-1] != '/')) + if(!outpath.empty() && (outpath[outpath.length()-1] != '/')) outpath += '/'; outpath += s;