]> git.donarmstrong.com Git - lilypond.git/blobdiff - lib/simple-file-storage.cc
release: 0.1.23
[lilypond.git] / lib / simple-file-storage.cc
index b618e11634220e91c0f0969ce883c71b01647854..3ef231a3e49bad9938809be1cde2e65320e2e303 100644 (file)
@@ -34,7 +34,7 @@ Simple_file_storage::Simple_file_storage(String s)
     let's hope that "b" opens anything binary, and does not apply 
     CR/LF translation
     */
-  FILE * f =  (s) ?  fopen (s.ch_C(), "rb") : stdin;
+  FILE * f =  (s.length_i ()) ?  fopen (s.ch_C(), "rb") : stdin;
   
   if (!f) 
     {