[systemd-commits] src/core

Lennart Poettering lennart at kemper.freedesktop.org
Tue Feb 3 09:55:08 PST 2015


 src/core/busname.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d69a7ceaed77992105342a056fe68769c2e6d3bd
Author: Johannes Hölzl <johannes.hoelzl at gmx.de>
Date:   Tue Feb 3 18:53:31 2015 +0100

    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 bc3a2bc..1d77292 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)



More information about the systemd-commits mailing list