Browse Source

art & beauty

pEpMIME_windows
Volker Birk 3 years ago
parent
commit
d26e4341a6
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      src/keymanagement.c
  2. +1
    -1
      src/stringlist.c

+ 2
- 2
src/keymanagement.c View File

@ -1753,7 +1753,6 @@ PEP_STATUS _own_keys_retrieve(
sqlite3_reset(session->own_keys_retrieve);
int result;
char *fpr = NULL;
stringlist_t *_bl = _keylist;
sqlite3_bind_int(session->own_keys_retrieve, 1, excluded_flags);
@ -1762,7 +1761,8 @@ PEP_STATUS _own_keys_retrieve(
result = sqlite3_step(session->own_keys_retrieve);
switch (result) {
case SQLITE_ROW:
_bl = stringlist_add(_bl, (const char *) sqlite3_column_text(session->own_keys_retrieve, 0));
_bl = stringlist_add(_bl, (const char *)
sqlite3_column_text(session->own_keys_retrieve, 0));
if (_bl == NULL)
goto enomem;
if (_keylist == NULL)


+ 1
- 1
src/stringlist.c View File

@ -18,7 +18,7 @@ DYNAMIC_API stringlist_t *new_stringlist(const char *value)
if (result && value) {
result->value = strdup(value);
assert(result->value);
if (result->value == 0) {
if (!result->value) {
free(result);
return NULL;
}


Loading…
Cancel
Save