this should not happen; give me an break if it does while debugging sync
authorVolker Birk <vb@pep-project.org>
Mon, 29 Apr 2019 12:38:13 +0200
branchsync
changeset 35731de13ee0a622
parent 3572 b5fab91365e7
child 3580 7c757957849b
this should not happen; give me an break if it does while debugging
src/pgp_sequoia.c
     1.1 --- a/src/pgp_sequoia.c	Mon Apr 29 12:34:55 2019 +0200
     1.2 +++ b/src/pgp_sequoia.c	Mon Apr 29 12:38:13 2019 +0200
     1.3 @@ -1588,6 +1588,7 @@
     1.4          return PEP_CANNOT_DELETE_KEY;
     1.5  
     1.6      sqlite_result = sqlite3_changes(session->key_db);
     1.7 +    assert(sqlite_result >= 0 && sqlite_result < 2);
     1.8      if (sqlite_result < 1)
     1.9          return PEP_KEY_NOT_FOUND;
    1.10