X-Git-Url: https://git.donarmstrong.com/lilypond.git?a=blobdiff_plain;f=lily%2Frelocate.cc;h=8cb2b0861f25636ad4a01b3d603777e47f892a5a;hb=9f3572d98bb948c9689cd1f75401a029451fa001;hp=ac4c31bac4658673c9af16e3b9f0363ef969b783;hpb=04265f11d1f21416ccebd2dcaa1d903dc781b36e;p=lilypond.git diff --git a/lily/relocate.cc b/lily/relocate.cc index ac4c31bac4..8cb2b0861f 100644 --- a/lily/relocate.cc +++ b/lily/relocate.cc @@ -385,7 +385,7 @@ read_relocation_file (string filename) else if (command == "prependdir") prepend_env_path (variable.c_str (), value); else - error (_f ("Unknown relocation command %s", command)); + error ( _f("Unknown relocation command %s", command)); } fclose (f); @@ -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 ()); + } + } }