Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
argo
excit
Commits
a8e2470b
Commit
a8e2470b
authored
Jan 11, 2019
by
Nicolas Denoyelle
Browse files
check return value when output arg is NULL
parent
e1ae2782
Changes
1
Show whitespace changes
Inline
Side-by-side
src/tleaf.c
View file @
a8e2470b
...
...
@@ -183,6 +183,7 @@ int tleaf_it_rank(const excit_t it, const ssize_t *indexes, ssize_t *n)
acc
*=
data_it
->
arities
[
i
];
}
if
(
n
!=
NULL
)
*
n
=
val
;
return
EXCIT_SUCCESS
;
}
...
...
@@ -377,6 +378,8 @@ int tleaf_it_split(const excit_t it, const ssize_t depth,
if
(
data_it
->
arities
[
depth
]
%
n
!=
0
)
return
-
EXCIT_EINVAL
;
if
(
out
==
NULL
)
return
EXCIT_SUCCESS
;
int
err
;
excit_t
*
levels
,
*
levels_inverse
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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