chiark / gitweb /
bus: pass timestamp info only to caller if he asked for it
[elogind.git] / src / libsystemd / sd-bus / sd-memfd.c
index 913be2086ac79461593e9174c0700c743dc117cb..b78ea6a313b9a686a10e96d663c8c6644f29b456 100644 (file)
@@ -92,8 +92,10 @@ _public_ int sd_memfd_new(const char *name, sd_memfd **m) {
         sz = ALIGN8(offsetof(struct kdbus_cmd_memfd_make, items)) +
                 ALIGN8(offsetof(struct kdbus_item, str)) +
                 l + 1;
+
         cmd = alloca0(sz);
         cmd->size = sz;
+
         item = cmd->items;
         item->size = ALIGN8(offsetof(struct kdbus_item, str)) + l + 1;
         item->type = KDBUS_ITEM_MEMFD_NAME;