From 4bf2bbb6fbfa745fa7e51f85dc59fc008207cb3e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 23 Jul 2011 00:47:50 +0200 Subject: [PATCH] lookup: fix NUL termination of search path array --- src/path-lookup.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/path-lookup.c b/src/path-lookup.c index e1925f1a..bed9175e 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; -- 2.39.5