aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/librc/librc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/librc/librc.c b/src/librc/librc.c
index 868accd7..8a9fd796 100644
--- a/src/librc/librc.c
+++ b/src/librc/librc.c
@@ -290,9 +290,11 @@ librc_hidden_def(rc_sys_v1)
const char *
rc_sys(void)
{
- const char *s = rc_sys_v2();
- if(s) return s;
- return rc_sys_v1();
+ if(rc_conf_value("rc_sys")) {
+ return rc_sys_v2();
+ } else {
+ return rc_sys_v1();
+ }
}
librc_hidden_def(rc_sys)