log_event is now empty.
authorKrista Bennett <krista@pep-project.org>
Mon, 19 Feb 2018 09:42:29 +0100
changeset 25183284b121d10a
parent 2517 5df0ed0fb25f
child 2519 dd4a8df2fc33
log_event is now empty.
src/pEpEngine.c
     1.1 --- a/src/pEpEngine.c	Mon Feb 19 09:31:39 2018 +0100
     1.2 +++ b/src/pEpEngine.c	Mon Feb 19 09:42:29 2018 +0100
     1.3 @@ -1507,29 +1507,29 @@
     1.4      )
     1.5  {
     1.6  //    PEP_STATUS status = PEP_STATUS_OK;
     1.7 -    int result;
     1.8 -
     1.9 -    assert(session);
    1.10 -    assert(title);
    1.11 -    assert(entity);
    1.12 -
    1.13 -    if (!(session && title && entity))
    1.14 -        return PEP_ILLEGAL_VALUE;
    1.15 -
    1.16 -    sqlite3_reset(session->log);
    1.17 -    sqlite3_bind_text(session->log, 1, title, -1, SQLITE_STATIC);
    1.18 -    sqlite3_bind_text(session->log, 2, entity, -1, SQLITE_STATIC);
    1.19 -    if (description)
    1.20 -        sqlite3_bind_text(session->log, 3, description, -1, SQLITE_STATIC);
    1.21 -    else
    1.22 -        sqlite3_bind_null(session->log, 3);
    1.23 -    if (comment)
    1.24 -        sqlite3_bind_text(session->log, 4, comment, -1, SQLITE_STATIC);
    1.25 -    else
    1.26 -        sqlite3_bind_null(session->log, 4);
    1.27 -    result = sqlite3_step(session->log);
    1.28 -    sqlite3_reset(session->log);
    1.29 -
    1.30 +    // int result;
    1.31 +    // 
    1.32 +    // assert(session);
    1.33 +    // assert(title);
    1.34 +    // assert(entity);
    1.35 +    // 
    1.36 +    // if (!(session && title && entity))
    1.37 +    //     return PEP_ILLEGAL_VALUE;
    1.38 +    // 
    1.39 +    // sqlite3_reset(session->log);
    1.40 +    // sqlite3_bind_text(session->log, 1, title, -1, SQLITE_STATIC);
    1.41 +    // sqlite3_bind_text(session->log, 2, entity, -1, SQLITE_STATIC);
    1.42 +    // if (description)
    1.43 +    //     sqlite3_bind_text(session->log, 3, description, -1, SQLITE_STATIC);
    1.44 +    // else
    1.45 +    //     sqlite3_bind_null(session->log, 3);
    1.46 +    // if (comment)
    1.47 +    //     sqlite3_bind_text(session->log, 4, comment, -1, SQLITE_STATIC);
    1.48 +    // else
    1.49 +    //     sqlite3_bind_null(session->log, 4);
    1.50 +    // result = sqlite3_step(session->log);
    1.51 +    // sqlite3_reset(session->log);
    1.52 +    // 
    1.53      return PEP_STATUS_OK; // We ignore errors for this function.
    1.54  }
    1.55