core: busname_supported() should cache what it detects
Add the missing "static" to actually make this a cache.
This commit is contained in:
parent
3b97fcbd28
commit
d69a7ceaed
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue