fixed compilation error on iotbzh's docker image.
[apps/agl-service-can-low-level.git] / src / main.cpp
index 4b3feb2..55f956e 100644 (file)
@@ -343,7 +343,7 @@ int main(int argc, char** argv)
                        std::ofstream out;\r
                        if (output_file.size())\r
                        {\r
-                               out = std::ofstream(output_file);\r
+                               out.open(output_file);\r
                                if(!out)\r
                                {\r
                                        std::stringstream ss;\r