Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
21fa9243
Commit
21fa9243
authored
Sep 09, 2015
by
Thomas Jahns
🤸
Browse files
Fix error in gridtype name query.
parent
88e87c8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/grid.c
View file @
21fa9243
...
...
@@ -534,10 +534,9 @@ void gridDestroyP ( void * gridptr )
const
char
*
gridNamePtr
(
int
gridtype
)
{
const
char
*
name
;
int
size
=
(
int
)
(
sizeof
(
Grids
)
/
sizeof
(
char
*
));
int
size
=
(
int
)
(
sizeof
(
Grids
)
/
sizeof
(
Grids
[
0
]));
name
=
gridtype
>=
0
&&
gridtype
<
size
?
Grids
[
gridtype
]
:
Grids
[
GRID_GENERIC
];
const
char
*
name
=
gridtype
>=
0
&&
gridtype
<
size
?
Grids
[
gridtype
]
:
Grids
[
GRID_GENERIC
];
return
(
name
);
}
...
...
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