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
Stefan Strogin
flac
Commits
a45af0ce
Commit
a45af0ce
authored
Jul 06, 2015
by
Erik de Castro Lopo
Browse files
libFLAC/md5.c: Minor formatting fixes
Patch-from: lvqcl <lvqcl.mail@gmail.com>
parent
ff50779e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libFLAC/md5.c
View file @
a45af0ce
...
...
@@ -224,7 +224,7 @@ void FLAC__MD5Init(FLAC__MD5Context *ctx)
ctx
->
bytes
[
0
]
=
0
;
ctx
->
bytes
[
1
]
=
0
;
ctx
->
internal_buf
.
p8
=
0
;
ctx
->
internal_buf
.
p8
=
0
;
ctx
->
capacity
=
0
;
}
...
...
@@ -262,7 +262,7 @@ void FLAC__MD5Final(FLAC__byte digest[16], FLAC__MD5Context *ctx)
memcpy
(
digest
,
ctx
->
buf
,
16
);
if
(
0
!=
ctx
->
internal_buf
.
p8
)
{
free
(
ctx
->
internal_buf
.
p8
);
ctx
->
internal_buf
.
p8
=
0
;
ctx
->
internal_buf
.
p8
=
0
;
ctx
->
capacity
=
0
;
}
memset
(
ctx
,
0
,
sizeof
(
*
ctx
));
/* In case it's sensitive */
...
...
@@ -502,11 +502,11 @@ FLAC__bool FLAC__MD5Accumulate(FLAC__MD5Context *ctx, const FLAC__int32 * const
FLAC__byte
*
tmp
=
realloc
(
ctx
->
internal_buf
.
p8
,
bytes_needed
);
if
(
0
==
tmp
)
{
free
(
ctx
->
internal_buf
.
p8
);
if
(
0
==
(
ctx
->
internal_buf
.
p8
=
safe_malloc_
(
bytes_needed
)))
if
(
0
==
(
ctx
->
internal_buf
.
p8
=
safe_malloc_
(
bytes_needed
)))
return
false
;
}
else
ctx
->
internal_buf
.
p8
=
tmp
;
ctx
->
internal_buf
.
p8
=
tmp
;
ctx
->
capacity
=
bytes_needed
;
}
...
...
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