merge
authorKrista Bennett <krista@pep-project.org>
Sat, 24 Feb 2018 16:41:17 +0100
changeset 25349d17c132c770
parent 2533 722b45fd4e67
parent 2532 4d46b7dd0fce
child 2536 ee7e89ef6a18
child 2538 be573c5f4782
merge
     1.1 --- a/src/pEpEngine.c	Sat Feb 24 16:40:44 2018 +0100
     1.2 +++ b/src/pEpEngine.c	Sat Feb 24 16:41:17 2018 +0100
     1.3 @@ -3411,8 +3411,16 @@
     1.4      } while (result != SQLITE_DONE);
     1.5  
     1.6      sqlite3_reset(session->crashdump);
     1.7 -    if (status == PEP_STATUS_OK)
     1.8 -        *logdata = _logdata;
     1.9 +    if (status == PEP_STATUS_OK) {
    1.10 +        if (_logdata) {
    1.11 +            *logdata = _logdata;
    1.12 +        }
    1.13 +        else {
    1.14 +            *logdata = strdup("");
    1.15 +            if (!*logdata)
    1.16 +                goto enomem;
    1.17 +        }
    1.18 +    }
    1.19  
    1.20      goto the_end;
    1.21