Blob Blame Raw
diff -Naur libvoikko-2.2.orig/src/morphology/malaga/files.cpp libvoikko-2.2/src/morphology/malaga/files.cpp
--- libvoikko-2.2.orig/src/morphology/malaga/files.cpp	2009-09-15 18:13:31.226662282 +0300
+++ libvoikko-2.2/src/morphology/malaga/files.cpp	2009-09-15 18:18:53.658662494 +0300
@@ -337,10 +337,9 @@
       add_to_text( path, relative_dir );
       free_mem( &relative_dir );
     } 
-    else 
+    else if (getcwd( current_dir, MAX_PATH_SIZE ) != NULL)
     { 
       /* Put current directory in front. */
-      getcwd( current_dir, MAX_PATH_SIZE );
       add_to_text( path, current_dir );
     }
   }