Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OBITools3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
23
Issues
23
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
OBITools
OBITools3
Commits
b11d52d6
Commit
b11d52d6
authored
Oct 29, 2018
by
Celine Mercier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug with the DMS counter being wrongly initialized to 0 instead
of 1 (generating memory bugs when using the counter)
parent
63052823
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/obidms.c
src/obidms.c
+6
-6
No files found.
src/obidms.c
View file @
b11d52d6
...
...
@@ -588,7 +588,7 @@ static int list_dms(OBIDMS_p dms)
if
(
global_opened_dms_list
[
i
]
==
NULL
)
{
// new dms
global_opened_dms_list
[
i
]
=
dms
;
global_opened_dms_counter_list
[
i
]
=
0
;
global_opened_dms_counter_list
[
i
]
=
1
;
}
else
{
// already opened dms
...
...
@@ -1543,7 +1543,7 @@ int obi_import_view(const char* dms_path_1, const char* dms_path_2, const char*
// Create new view
if
(
strcmp
((
view_1
->
infos
)
->
view_type
,
VIEW_TYPE_NUC_SEQS
)
==
0
)
view_2
=
obi_new_view_nuc_seqs
(
dms_2
,
view_name_2
,
NULL
,
NULL
,
(
view_1
->
infos
)
->
comments
,
false
);
view_2
=
obi_new_view_nuc_seqs
(
dms_2
,
view_name_2
,
NULL
,
NULL
,
(
view_1
->
infos
)
->
comments
,
false
,
false
);
else
// Non-typed view
view_2
=
obi_new_view
(
dms_2
,
view_name_2
,
NULL
,
NULL
,
(
view_1
->
infos
)
->
comments
);
...
...
@@ -1596,10 +1596,10 @@ int obi_import_view(const char* dms_path_1, const char* dms_path_2, const char*
-
1
,
NULL
,
false
)
<
0
)
{
obidebug
(
1
,
"
\n
Error adding a column to a view while importing it"
);
return
-
1
;
}
{
obidebug
(
1
,
"
\n
Error adding a column to a view while importing it"
);
return
-
1
;
}
}
// Close the views
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment