Browse Source

eliminate empty path names

David Rose 21 years ago
parent
commit
484f442fad
1 changed files with 3 additions and 1 deletions
  1. 3 1
      dtool/src/prc/configVariableSearchPath.cxx

+ 3 - 1
dtool/src/prc/configVariableSearchPath.cxx

@@ -68,7 +68,9 @@ reload_search_path() {
   for (int i = 0; i < num_unique_references; i++) {
     string dirname = _core->get_unique_reference(i)->get_string_value();
     string expanded = ExecutionEnvironment::expand_string(dirname);
-    _value.append_directory(Filename::from_os_specific(expanded));
+    if (!expanded.empty()) {
+      _value.append_directory(Filename::from_os_specific(expanded));
+    }
   }
   _value.append_path(_postfix);