From: Johannes Hölzl Date: Tue, 3 Feb 2015 17:53:31 +0000 (+0100) Subject: core: busname_supported() should cache what it detects X-Git-Tag: v219~164 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=d69a7ceaed77992105342a056fe68769c2e6d3bd core: busname_supported() should cache what it detects Add the missing "static" to actually make this a cache. --- diff --git a/src/core/busname.c b/src/core/busname.c index bc3a2bcb7..1d77292f9 100644 --- a/src/core/busname.c +++ b/src/core/busname.c @@ -975,7 +975,7 @@ static int busname_get_timeout(Unit *u, uint64_t *timeout) { } static bool busname_supported(Manager *m) { - int supported = -1; + static int supported = -1; assert(m); if (supported < 0)