Commit f5a17bea by Celine Mercier

C: added a missing error check

parent e2850763
......@@ -1659,6 +1659,12 @@ int obi_import_view(const char* dms_path_1, const char* dms_path_2, const char*
else // Non-typed view
view_2 = obi_new_view(dms_2, view_name_2, NULL, NULL, (view_1->infos)->comments);
if (view_2 == NULL)
obidebug(1, "\nError creating the new view to import a view in a DMS");
return -1;
// Import line count
view_2->infos->line_count = view_1->infos->line_count;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment