summaryrefslogtreecommitdiff
path: root/src/core/busname.c
diff options
context:
space:
mode:
authorJohannes Hölzl <johannes.hoelzl@gmx.de>2015-02-03 18:53:31 +0100
committerLennart Poettering <lennart@poettering.net>2015-02-03 18:53:31 +0100
commitd69a7ceaed77992105342a056fe68769c2e6d3bd (patch)
tree49b5b35301deb7acb7cadbdc95e4462f0f6edc65 /src/core/busname.c
parent3b97fcbd28f92a1e51887fef5de8844a89bde523 (diff)
core: busname_supported() should cache what it detects
Add the missing "static" to actually make this a cache.
Diffstat (limited to 'src/core/busname.c')
-rw-r--r--src/core/busname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/busname.c b/src/core/busname.c
index bc3a2bcb78..1d77292f9b 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)