initialize variable being used as in/out to strtok_r sync
authorVolker Birk <vb@pep.foundation>
Sun, 21 Oct 2018 11:49:07 +0200
branchsync
changeset 3075207b1a595665
parent 3074 680162c4b35e
child 3076 feab4daed302
initialize variable being used as in/out to strtok_r
src/pgp_gpg.c
     1.1 --- a/src/pgp_gpg.c	Sun Oct 21 11:45:39 2018 +0200
     1.2 +++ b/src/pgp_gpg.c	Sun Oct 21 11:49:07 2018 +0200
     1.3 @@ -23,7 +23,7 @@
     1.4      unsigned int i;
     1.5      unsigned int found = 0;
     1.6      bool eof_nl = 0;
     1.7 -    char * rest;
     1.8 +    char * rest = NULL;
     1.9      char * token;
    1.10      char * s;
    1.11      const char* line_end;