summaryrefslogtreecommitdiff
path: root/src/path-lookup.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-07-23 00:47:50 +0200
committerLennart Poettering <lennart@poettering.net>2011-07-23 00:47:50 +0200
commit4bf2bbb6fbfa745fa7e51f85dc59fc008207cb3e (patch)
treefd2388609af2982115ad2217319e30e8e85e4dd7 /src/path-lookup.c
parentddd88763921a1534081ed28e36f6712a85449005 (diff)
lookup: fix NUL termination of search path array
Diffstat (limited to 'src/path-lookup.c')
-rw-r--r--src/path-lookup.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/path-lookup.c b/src/path-lookup.c
index e1925f1a4d..bed9175e3f 100644
--- a/src/path-lookup.c
+++ b/src/path-lookup.c
@@ -56,7 +56,8 @@ static char** user_dirs(void) {
const char * const config_unit_paths[] = {
"/run/systemd/user",
USER_CONFIG_UNIT_PATH,
- "/etc/systemd/user"
+ "/etc/systemd/user",
+ NULL
};
const char * const data_unit_paths[] = {
@@ -64,7 +65,8 @@ static char** user_dirs(void) {
"/usr/local/share/systemd/user",
USER_DATA_UNIT_PATH,
"/usr/lib/systemd/user",
- "/usr/share/systemd/user"
+ "/usr/share/systemd/user",
+ NULL
};
const char *home, *e;