diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-09-18 11:40:01 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-09-18 11:40:01 +0200 |
commit | 3ef63c317481c2b3f1fe39e1b0f130aac3544522 (patch) | |
tree | 0a6bb8b1566591bb7cf6d51fcb085493688efa4a /src/core/service.c | |
parent | 41f9172f427bdbb8221c64029f78364b8dd4e527 (diff) |
unit-printf: before resolving exec context specifiers check whether the object actually has an exec context
Diffstat (limited to 'src/core/service.c')
-rw-r--r-- | src/core/service.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/service.c b/src/core/service.c index 1e3e875c3f..39e1ab5167 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -3837,6 +3837,8 @@ DEFINE_STRING_TABLE_LOOKUP(start_limit_action, StartLimitAction); const UnitVTable service_vtable = { .object_size = sizeof(Service), + .exec_context_offset = offsetof(Service, exec_context), + .sections = "Unit\0" "Service\0" |