journald: add missing error check

This commit is contained in:
Lennart Poettering 2013-10-02 19:36:43 +02:00
parent 4b93637fd7
commit 8c92d4bbc7

View file

@ -907,6 +907,8 @@ static int journal_file_append_field(
osize = offsetof(Object, field.payload) + size;
r = journal_file_append_object(f, OBJECT_FIELD, osize, &o, &p);
if (r < 0)
return r;
o->field.hash = htole64(hash);
memcpy(o->field.payload, field, size);