phrase id may be negative or 0
authorVolker Birk <vb@pep-project.org>
Sun, 28 Feb 2016 19:10:17 +0100
changeset 479e7ba9e9272af
parent 478 849930991fdc
child 480 dc8c26e06eb0
phrase id may be negative or 0
src/pEpEngine.c
     1.1 --- a/src/pEpEngine.c	Sun Feb 28 19:09:05 2016 +0100
     1.2 +++ b/src/pEpEngine.c	Sun Feb 28 19:10:17 2016 +0100
     1.3 @@ -1260,11 +1260,9 @@
     1.4      PEP_STATUS status = PEP_STATUS_OK;
     1.5      *phrase = NULL;
     1.6  
     1.7 -    assert(session && lang && lang[0] && lang[1] && lang[2] == 0 &&
     1.8 -            phrase_id >= 0 && phrase);
     1.9 +    assert(session && lang && lang[0] && lang[1] && lang[2] == 0 && phrase);
    1.10  
    1.11 -    if (!(session && lang && lang[0] && lang[1] && lang[2] == 0 &&
    1.12 -            phrase_id >= 0 && phrase))
    1.13 +    if (!(session && lang && lang[0] && lang[1] && lang[2] == 0 && phrase))
    1.14          return PEP_ILLEGAL_VALUE;
    1.15  
    1.16      sqlite3_reset(session->i18n_token);