core: busname_supported() should cache what it detects

Add the missing "static" to actually make this a cache.
This commit is contained in:
Johannes Hölzl 2015-02-03 18:53:31 +01:00 committed by Lennart Poettering
parent 3b97fcbd28
commit d69a7ceaed

View file

@ -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)