Initializing clientName at declaration time is not a good idea.
Spotted by Coverity scan.
}
-docstring clientName =
- from_ascii(to_string(::getppid()) + ">" + to_string(::getpid()));
+docstring clientName;
int n(vector<docstring> const & arg)
{
int main(int argc, char * argv[])
{
- lyx::lyxerr.setStream(cerr);
+ using namespace lyx;
+ lyxerr.setStream(cerr);
+ cmdline::clientName =
+ from_ascii(to_string(::getppid()) + ">" + to_string(::getpid()));
- lyx::LyXClientApp app(argc, argv);
+ LyXClientApp app(argc, argv);
return app.exec();
}