projects
/
platform
/
core
/
security
/
yaca.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0af4e6e
)
Small cosmetic change in digest.c to line it up with the style of the rest of the...
79/65779/2
author
Lukasz Pawelczyk
<l.pawelczyk@samsung.com>
Tue, 12 Apr 2016 11:34:04 +0000
(13:34 +0200)
committer
Mateusz Kulikowski
<mateusz.kulikowski@gmail.com>
Wed, 13 Apr 2016 06:52:24 +0000
(23:52 -0700)
Change-Id: Ib22750311254ffaaa0f241191f9a9fdeed1a00b7
src/digest.c
patch
|
blob
|
history
diff --git
a/src/digest.c
b/src/digest.c
index
bd3f62f
..
93a2535
100644
(file)
--- a/
src/digest.c
+++ b/
src/digest.c
@@
-147,15
+147,12
@@
API int yaca_digest_init(yaca_ctx_h *ctx, yaca_digest_algo_e algo)
*ctx = (yaca_ctx_h)nc;
- ret
=
0;
+ ret
urn
0;
ctx:
- if (ret != 0)
- EVP_MD_CTX_destroy(nc->mdctx);
+ EVP_MD_CTX_destroy(nc->mdctx);
free:
- if (ret != 0)
- yaca_free(nc);
-
+ yaca_free(nc);
return ret;
}