art & beauty sync
authorVolker Birk <vb@pep-project.org>
Fri, 03 May 2019 10:47:30 +0200
branchsync
changeset 361097033a138011
parent 3609 548e7dd045e5
child 3611 95a05d4cf872
art & beauty
src/keymanagement.c
src/stringlist.c
     1.1 --- a/src/keymanagement.c	Fri May 03 10:40:31 2019 +0200
     1.2 +++ b/src/keymanagement.c	Fri May 03 10:47:30 2019 +0200
     1.3 @@ -1753,7 +1753,6 @@
     1.4      sqlite3_reset(session->own_keys_retrieve);
     1.5      
     1.6      int result;
     1.7 -    char *fpr = NULL;
     1.8      
     1.9      stringlist_t *_bl = _keylist;
    1.10      sqlite3_bind_int(session->own_keys_retrieve, 1, excluded_flags);
    1.11 @@ -1762,7 +1761,8 @@
    1.12          result = sqlite3_step(session->own_keys_retrieve);
    1.13          switch (result) {
    1.14              case SQLITE_ROW:
    1.15 -                _bl = stringlist_add(_bl, (const char *) sqlite3_column_text(session->own_keys_retrieve, 0));
    1.16 +                _bl = stringlist_add(_bl, (const char *)
    1.17 +                        sqlite3_column_text(session->own_keys_retrieve, 0));
    1.18                  if (_bl == NULL)
    1.19                      goto enomem;
    1.20                  if (_keylist == NULL)
     2.1 --- a/src/stringlist.c	Fri May 03 10:40:31 2019 +0200
     2.2 +++ b/src/stringlist.c	Fri May 03 10:47:30 2019 +0200
     2.3 @@ -18,7 +18,7 @@
     2.4      if (result && value) {
     2.5          result->value = strdup(value);
     2.6          assert(result->value);
     2.7 -        if (result->value == 0) {
     2.8 +        if (!result->value) {
     2.9              free(result);
    2.10              return NULL;
    2.11          }