journald: add missing error check

This commit is contained in:
Lennart Poettering
2013-10-06 10:48:20 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent 915491b8cd
commit 4bee17817b
+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);