journald: add missing error check

This commit is contained in:
Lennart Poettering
2013-10-02 19:36:43 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent b76652a28e
commit 6fcec98acd
+2
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);