Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
nerrons
purr-data
Commits
96403cfc
Commit
96403cfc
authored
Aug 10, 2017
by
Jonathan Wilkes
Browse files
check for argc before dereferencing
parent
5fd4f7be
Changes
1
Hide whitespace changes
Inline
Side-by-side
externals/vbap/define_loudspeakers.c
View file @
96403cfc
...
@@ -215,7 +215,7 @@ static void initContent_ls_directions(t_def_ls *x,int ac,Atom*av)
...
@@ -215,7 +215,7 @@ static void initContent_ls_directions(t_def_ls *x,int ac,Atom*av)
/* if (av[0].a_type == A_LONG) d = av[0].a_w.w_long;
/* if (av[0].a_type == A_LONG) d = av[0].a_w.w_long;
else */
else */
if
(
av
[
0
].
a_type
==
A_FLOAT
)
d
=
(
long
)
av
[
0
].
a_w
.
w_float
;
if
(
ac
&&
av
[
0
].
a_type
==
A_FLOAT
)
d
=
(
long
)
av
[
0
].
a_w
.
w_float
;
else
{
error
(
"define-loudspeakers: dimension NaN"
);
return
;
}
else
{
error
(
"define-loudspeakers: dimension NaN"
);
return
;
}
if
(
d
==
2
||
d
==
3
)
if
(
d
==
2
||
d
==
3
)
...
...
Write
Preview
Supports
Markdown
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