summaryrefslogtreecommitdiff
path: root/debian/patches/99-kfreebsd-empty-env.patch
blob: 4ed65eaa3a5ed55cde77e78400cf2da54f5004c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- consolekit/src/ck-sysdeps-freebsd.c
+++ consolekit/src/ck-sysdeps-freebsd.c
@@ -261,6 +261,8 @@
         for (i = 0; penv[i] != NULL; i++) {
                 char **vals;

+                if (!penv[i][0]) continue;
+
                 vals = g_strsplit (penv[i], "=", 2);
                 if (vals != NULL) {
                         g_hash_table_insert (hash,