comparison src/dirfns.cc @ 1785:6109184b054f

[project @ 1996-01-24 19:42:04 by jwe]
author jwe
date Wed, 24 Jan 1996 19:42:04 +0000
parents e090f89bf2f5
children 3a16afafc2ee
comparison
equal deleted inserted replaced
1784:28b9e76f7736 1785:6109184b054f
178 // DOT_PATH contains the symbolic location of '.'. 178 // DOT_PATH contains the symbolic location of '.'.
179 179
180 string 180 string
181 make_absolute (const string& s, const string& dot_path) 181 make_absolute (const string& s, const string& dot_path)
182 { 182 {
183 if (dot_path.empty () || s[0] == '/') 183 if (dot_path.empty () || s[0] == '/' || s.empty ())
184 return s; 184 return s;
185 185
186 string current_path = dot_path; 186 string current_path = dot_path;
187 187
188 if (current_path.empty ()) 188 if (current_path.empty ())