Commits

Merov Linden committed 5ff914a

STORM-987 : Fix the creation of images in local dir

Comments (0)

Files changed (1)

indra/integration_tests/llimage_libtest/llimage_libtest.cpp

 		{
 			dir = gDirUtilp->getDirName(*in_file);
 			name = gDirUtilp->getBaseFileName(*in_file,true);
-			std::string file_name = dir + delim + name + "." + exten;
+			std::string file_name;
+			if (!dir.empty())
+			{
+				file_name = dir + delim + name + "." + exten;
+			}
+			else
+			{
+				file_name = name + "." + exten;
+			}
 			output_filenames.push_back(file_name);
 		}
 	}