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
bob
bob.io.image
Commits
3eebd70c
Commit
3eebd70c
authored
Apr 06, 2016
by
Amir Mohammadi
Browse files
don't use variables uninitialized.
parent
a1720e46
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/io/image/netpbm.cpp
View file @
3eebd70c
...
...
@@ -202,7 +202,7 @@ static int * pnm_allocpam(struct pam * const pamP) {
}
static
void
pnm_readpam
(
struct
pam
*
const
pamP
,
int
*
img_data
)
{
int
read_err
;
int
read_err
=
1
;
/* Read the image data. */
if
((
pamP
->
format
==
PBM_ASCII
)
||
(
pamP
->
format
==
PBM_BINARY
))
{
...
...
@@ -220,7 +220,7 @@ static void pnm_readpam(struct pam * const pamP, int *img_data) {
}
static
void
pnm_writepam
(
struct
pam
*
const
pamP
,
int
*
img_data
)
{
int
write_err
;
int
write_err
=
1
;
/* Write the output image file. */
if
((
pamP
->
format
==
PBM_ASCII
)
||
(
pamP
->
format
==
PBM_BINARY
))
{
...
...
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