aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-01-25 04:12:11 +0000
committerMike Frysinger <vapier@gentoo.org>2023-01-25 00:05:32 -0500
commitfc4f15d6cd8e7884f7094e5d3749b01f2d5a448f (patch)
tree62057ff16d511d0247bb9546c30c5180b4b38c74 /src
parent19f329d2f4ddc355ff699c856fec8081d7aac4a3 (diff)
openrc: fix double-assignment to dir
This one is a bit odd, it didn't get fixed in e273b4e08ee0ebc1a001d60e2a5b65a9553a8a8a, and goes all the way back to cb9da6a262b60255cd037f20b4cde3ab2c8a1e6a.
Diffstat (limited to 'src')
-rw-r--r--src/openrc/rc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/openrc/rc.c b/src/openrc/rc.c
index 3f023492..941a3d2c 100644
--- a/src/openrc/rc.c
+++ b/src/openrc/rc.c
@@ -506,7 +506,6 @@ runlevel_config(const char *service, const char *level)
bool retval;
dir = dirname(init);
- dir = dirname(init);
xasprintf(&conf, "%s/conf.d/%s.%s", dir, service, level);
retval = exists(conf);
free(conf);