]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/relocate.cc
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / lily / relocate.cc
index d7f7888c4a6ecdf7e2d0401b8be4af941caecd26..8cb2b0861f25636ad4a01b3d603777e47f892a5a 100644 (file)
@@ -394,11 +394,14 @@ read_relocation_file (string filename)
 void
 read_relocation_dir (string dirname)
 {
-  if (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 ());
-      }
+  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 ());
+       }
+    }
 }