From 3ef63c317481c2b3f1fe39e1b0f130aac3544522 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 18 Sep 2012 11:40:01 +0200 Subject: unit-printf: before resolving exec context specifiers check whether the object actually has an exec context --- src/core/swap.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/swap.c') diff --git a/src/core/swap.c b/src/core/swap.c index 8ba60559c6..d5bf153f29 100644 --- a/src/core/swap.c +++ b/src/core/swap.c @@ -1355,6 +1355,8 @@ DEFINE_STRING_TABLE_LOOKUP(swap_result, SwapResult); const UnitVTable swap_vtable = { .object_size = sizeof(Swap), + .exec_context_offset = offsetof(Swap, exec_context), + .sections = "Unit\0" "Swap\0" -- cgit v1.2.3-54-g00ecf