Permalink
Browse files

fix bug: set default GPG_ERROR_NO_ERROR

  • Loading branch information...
mnaamani committed Mar 6, 2013
1 parent 623c4f9 commit 36438124e703ac25e1e2060d75d651d9d6a5628c
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/jsapi.c
View
@@ -118,7 +118,7 @@ gcry_error_t jsapi_account_write(FILE *privf, const char *accountname,
}
gcry_error_t jsapi_userstate_write_to_file(OtrlUserState us, const char *filename){
- gcry_error_t err;
+ gcry_error_t err = GPG_ERR_NO_ERROR;
FILE *privf;
OtrlPrivKey *p;
mode_t oldmask;
@@ -149,7 +149,7 @@ gcry_error_t jsapi_userstate_write_to_file(OtrlUserState us, const char *filenam
gcry_error_t jsapi_privkey_delete(OtrlUserState us, const char *filename,
const char *accountname, const char *protocol)
{
- gcry_error_t err = 0;
+ gcry_error_t err = GPG_ERR_NO_ERROR;
/* remove key from userstate */
OtrlPrivKey* existing_key = otrl_privkey_find(us,accountname,protocol);

0 comments on commit 3643812

Please sign in to comment.