OSDN Git Service
(root)
/
kde
/
kde-workspace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8a037f
)
kwalletd: fix a compiler warning
author
Ivailo Monev
<xakepa10@gmail.com>
Sun, 14 Jun 2015 10:23:37 +0000
(13:23 +0300)
committer
Ivailo Monev
<xakepa10@gmail.com>
Sun, 14 Jun 2015 10:23:37 +0000
(13:23 +0300)
kwalletd/backend/cbc.cc
patch
|
blob
|
history
diff --git
a/kwalletd/backend/cbc.cc
b/kwalletd/backend/cbc.cc
index
772f3de
..
da169b2
100644
(file)
--- a/
kwalletd/backend/cbc.cc
+++ b/
kwalletd/backend/cbc.cc
@@
-85,8
+85,8
@@
void CipherBlockChain::initRegister() {
int CipherBlockChain::encrypt(void *block, int len)
{
+ int rc = -1;
if (_cipher && !_reader) {
- int rc;
_writer |= 1;
@@
-116,7
+116,7
@@
int CipherBlockChain::encrypt(void *block, int len)
return rc;
}
- return
-1
;
+ return
rc
;
}
// This is the old decrypt method, that was decrypting using ECB