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
Duncan White
C-datadec
Commits
7fa7f7b1
Commit
7fa7f7b1
authored
Dec 15, 1997
by
css1dw
Browse files
fixed embarrassing bug in print_all_params - null check
in the wrong place - failed to check properly!
parent
001bc34e
Changes
1
Hide whitespace changes
Inline
Side-by-side
decs.c
View file @
7fa7f7b1
...
...
@@ -882,15 +882,16 @@ static void print_all_params( d, s ) declnlist d; shapelist s;
}
else
{
n
=
pl
->
item
->
num
;
for
(
p
=
s
->
params
;
--
n
;
p
=
p
->
next
)
for
(
p
=
s
->
params
;
p
!=
NULL
&&
--
n
;
p
=
p
->
next
)
;
if
(
p
==
NULL
)
{
if
(
p
==
NULL
)
{
fprintf
(
stderr
,
fprintf
(
stderr
,
"datadec: bad printitem in shape %s of type %s
\n
"
,
s
->
name
,
d
->
name
);
exit
(
1
);
}
exit
(
1
);
}
print_param
(
s
,
p
,
d
->
Union
);
}
...
...
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