From f5a17bea68bf521debbc7f62fbac314b7a1d32cd Mon Sep 17 00:00:00 2001 From: Celine Mercier Date: Sun, 26 Jul 2020 17:39:55 +0200 Subject: [PATCH] C: added a missing error check --- src/obidms.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/obidms.c b/src/obidms.c index de555a2..71f1ed0 100755 --- a/src/obidms.c +++ b/src/obidms.c @@ -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;