chiark / gitweb /
Fix service file to match installed elogind binary location
[elogind.git] / src / shared / sleep-config.c
index 7d47e79ebf1493c151285b51eb0c28e8c45c4f77..3a947fcde2bc7880e907c4f7d25cf6f0ee6e9da0 100644 (file)
@@ -59,10 +59,10 @@ int parse_sleep_config(const char *verb, char ***_modes, char ***_states) {
                 {}
         };
 
-        config_parse_many(PKGSYSCONFDIR "/sleep.conf",
-                          CONF_PATHS_NULSTR("systemd/sleep.conf.d"),
-                          "Sleep\0", config_item_table_lookup, items,
-                          false, NULL);
+        config_parse_many_nulstr(PKGSYSCONFDIR "/sleep.conf",
+                                 CONF_PATHS_NULSTR("systemd/sleep.conf.d"),
+                                 "Sleep\0", config_item_table_lookup, items,
+                                 false, NULL);
 
         if (streq(verb, "suspend")) {
                 /* empty by default */