]> err.no Git - systemd/commitdiff
lookup: fix NUL termination of search path array
authorLennart Poettering <lennart@poettering.net>
Fri, 22 Jul 2011 22:47:50 +0000 (00:47 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 22 Jul 2011 22:47:50 +0000 (00:47 +0200)
src/path-lookup.c

index e1925f1a4d54e4fb5ca328c6bf7e1cbd5170f77a..bed9175e3f1e47e37ea781ecffa8c146b1f57ed6 100644 (file)
@@ -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;