+2006-06-03 Han-Wen Nienhuys <hanwen@lilypond.org>
+
+ * lily/relocate.cc (read_relocation_dir): only read dir if available.
+
2006-06-02 Han-Wen Nienhuys <hanwen@lilypond.org>
* make/mutopia-vars.make (ly_examples): remove .txt from .ly.txt
{
DIR *dir = opendir (dirname.c_str ());
- while (struct dirent *ent = readdir (dir))
- {
- File_name name (ent->d_name);
- if (name.ext_ == "reloc")
- {
- read_relocation_file (dirname + "/" + name.to_string ());
- }
- }
+ if (dir)
+ while (struct dirent *ent = readdir (dir))
+ {
+ File_name name (ent->d_name);
+ if (name.ext_ == "reloc")
+ {
+ read_relocation_file (dirname + "/" + name.to_string ());
+ }
+ }
}