service: Don't crash because of double free when Arch services are disabled in rc.conf

This commit is contained in:
Matthias Schiffer
2010-09-28 19:41:04 +02:00
committed by Lennart Poettering
parent 30b89475ee
commit 409db00299
+1
View File
@@ -2795,6 +2795,7 @@ static int service_enumerate(Manager *m) {
STRV_FOREACH(p, arch_daemons_split) {
free(name);
name = NULL;
if (**p == '!') /* daemons prefixed with ! are disabled, so ignore them */
continue;