missing assert
authorVolker Birk <vb@pep-project.org>
Wed, 27 Jul 2016 14:46:41 +0200
changeset 93102ec6c6296a2
parent 930 c201a657e628
child 932 d35b292fe141
missing assert
src/keymanagement.c
     1.1 --- a/src/keymanagement.c	Wed Jul 27 12:55:01 2016 +0200
     1.2 +++ b/src/keymanagement.c	Wed Jul 27 14:46:41 2016 +0200
     1.3 @@ -230,6 +230,7 @@
     1.4          if (EMPTYSTR(identity->username)) { // mitigate
     1.5              free(identity->username);
     1.6              identity->username = strdup("anonymous");
     1.7 +            assert(identity->username);
     1.8              if (identity->username == NULL){
     1.9                  status = PEP_OUT_OF_MEMORY;
    1.10                  goto exit_free;