2018-11-27 Martin Liska <mliska@suse.cz>
* gcov.c (generate_results): Append current_working_directory
only when exists.
From-SVN: r266521
+2018-11-27 Martin Liska <mliska@suse.cz>
+
+ * gcov.c (generate_results): Append current_working_directory
+ only when exists.
+
2018-11-27 Mike Gulick <mgulick@mathworks.com>
PR preprocessor/83173
json::object *root = new json::object ();
root->set ("format_version", new json::string ("1"));
root->set ("gcc_version", new json::string (version_string));
- root->set ("current_working_directory", new json::string (bbg_cwd));
+
+ if (bbg_cwd != NULL)
+ root->set ("current_working_directory", new json::string (bbg_cwd));
json::array *json_files = new json::array ();
root->set ("files", json_files);