Browse Source

...

doc_update_sequoia
vb 8 years ago
parent
commit
2e27b2a8a0
5 changed files with 5 additions and 6 deletions
  1. +1
    -1
      src/pEpEngine.c
  2. +1
    -1
      src/pgp_gpg.c
  3. +1
    -1
      src/platform_windows.cpp
  4. +1
    -1
      src/stringlist.c
  5. +1
    -2
      src/stringpair.c

+ 1
- 1
src/pEpEngine.c View File

@ -33,7 +33,7 @@ DYNAMIC_API PEP_STATUS init(PEP_SESSION *session)
assert(session);
*session = NULL;
pEpSession *_session = (pEpSession *) calloc(1, sizeof(pEpSession));
pEpSession *_session = calloc(1, sizeof(pEpSession));
assert(_session);
if (_session == NULL)
goto enomem;


+ 1
- 1
src/pgp_gpg.c View File

@ -684,7 +684,7 @@ PEP_STATUS pgp_encrypt_and_sign(
return PEP_UNKNOWN_ERROR;
}
rcpt = (gpgme_key_t *) calloc(stringlist_length(keylist) + 1,
rcpt = calloc(stringlist_length(keylist) + 1,
sizeof(gpgme_key_t));
assert(rcpt);
if (rcpt == NULL) {


+ 1
- 1
src/platform_windows.cpp View File

@ -205,7 +205,7 @@ long random(void)
char *strndup(const char *s1, size_t n)
{
char *str = (char *) calloc(n + 1, 1);
char *str = calloc(n + 1, 1);
if (str == NULL)
return NULL;


+ 1
- 1
src/stringlist.c View File

@ -7,7 +7,7 @@
DYNAMIC_API stringlist_t *new_stringlist(const char *value)
{
stringlist_t *result = (stringlist_t *) calloc(1, sizeof(stringlist_t));
stringlist_t *result = calloc(1, sizeof(stringlist_t));
if (result && value) {
result->value = strdup(value);
assert(result->value);


+ 1
- 2
src/stringpair.c View File

@ -50,8 +50,7 @@ DYNAMIC_API stringpair_t * stringpair_dup(const stringpair_t *src)
DYNAMIC_API stringpair_list_t *new_stringpair_list(const stringpair_t *value)
{
stringpair_list_t *result = (stringpair_list_t *) calloc(1,
sizeof(stringpair_list_t));
stringpair_list_t *result = calloc(1, sizeof(stringpair_list_t));
if (result && value) {
result->value = stringpair_dup(value);
if (result->value == 0) {


Loading…
Cancel
Save