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
Jonathan Wilkes
purr-data
Commits
f71dd19f
Commit
f71dd19f
authored
May 21, 2020
by
Jonathan Wilkes
Browse files
fix error where garray members were being dereferenced before initialization
parent
55f0f5d2
Pipeline
#1770
failed with stage
in 75 minutes and 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pd/src/g_array.c
View file @
f71dd19f
...
...
@@ -192,6 +192,8 @@ static t_garray *graph_scalar(t_glist *gl, t_symbol *s, t_symbol *templatesym,
if
(
!
(
template
=
template_findbyname
(
templatesym
)))
return
(
0
);
x
=
(
t_garray
*
)
pd_new
(
garray_class
);
x
->
x_fillcolor
=
fill
;
x
->
x_outlinecolor
=
outline
;
x
->
x_scalar
=
scalar_new
(
gl
,
templatesym
);
x
->
x_name
=
s
;
x
->
x_realname
=
canvas_realizedollar
(
gl
,
s
);
...
...
@@ -488,8 +490,6 @@ t_garray *graph_array(t_glist *gl, t_symbol *s, int argc, t_atom *argv)
x
=
graph_scalar
(
gl
,
name
,
templatesym
,
fill
,
outline
,
saveit
);
x
->
x_hidename
=
((
flags
&
8
)
>>
3
);
x
->
x_joc
=
((
flags
&
16
)
>>
4
);
x
->
x_fillcolor
=
fill
;
x
->
x_outlinecolor
=
outline
;
x
->
x_style
=
style
;
if
(
n
<=
0
)
...
...
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