summaryrefslogtreecommitdiff
path: root/libnm-core
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-08-01 21:38:39 +0200
committerThomas Haller <thaller@redhat.com>2018-08-10 10:38:19 +0200
commitdefc629f94f000bad557f60ce60a37ea5079f7bc (patch)
tree07a7c9725ccef16d1a424c1908aac2c3cf52f094 /libnm-core
parenta5f9f0a224c2c545ddfb668bcceaac21993d2e2b (diff)
keyfile: fix asserting for absolute base-dir in nm_keyfile_read()
Diffstat (limited to 'libnm-core')
-rw-r--r--libnm-core/nm-keyfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnm-core/nm-keyfile.c b/libnm-core/nm-keyfile.c
index dbc0b187f..70572b18f 100644
--- a/libnm-core/nm-keyfile.c
+++ b/libnm-core/nm-keyfile.c
@@ -2778,7 +2778,7 @@ nm_keyfile_read (GKeyFile *keyfile,
base_dir = base_dir_free = g_get_current_dir ();
}
} else
- g_return_val_if_fail ("/", NULL);
+ g_return_val_if_fail (base_dir[0] == '/', NULL);
connection = nm_simple_connection_new ();