summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-05-31 16:39:27 +0100
committerCarl Hetherington <cth@carlh.net>2017-05-31 16:39:27 +0100
commit4f5845083e94224bcd4de2ff9ed46c68a3673ba3 (patch)
tree8ce182e0800572391728a560191a8c5a5bc39cce
parentd0a0a4839f0e1e8d37f9f9ad41784c4d18210a6b (diff)
Fix build.
-rw-r--r--test/optimise_stills_test.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/optimise_stills_test.cc b/test/optimise_stills_test.cc
index 7bd7f3b85..b939d2914 100644
--- a/test/optimise_stills_test.cc
+++ b/test/optimise_stills_test.cc
@@ -46,7 +46,8 @@ void
check (string name, int check_full, int check_repeat)
{
/* The encoder will have been destroyed so parse the logs */
- ifstream log ("build/test/" + name + "/log");
+ string log_file = "build/test/" + name + "/log";
+ ifstream log (log_file.c_str());
string line;
int repeat = 0;
int full = 0;