about summary refs log tree commit diff
path: root/libnm-core/nm-utils.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2016-08-03 23:00:16 +0200
committerMichael Biebl <biebl@debian.org>2016-08-03 23:00:16 +0200
commit511e94811644318cc196e197616fdc558030e8e3 (patch)
tree1ea5c895be190982cc686d43ebed62ae33d60426 /libnm-core/nm-utils.c
parentfb15332b981b5637ae4aeadc546e2f46bf333cd1 (diff)
parentd6201f5d8daada3d64a0a3e0038e14eebec683ce (diff)
Merge tag 'upstream/1.2.4'
Upstream version 1.2.4
Diffstat (limited to 'libnm-core/nm-utils.c')
-rw-r--r--libnm-core/nm-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnm-core/nm-utils.c b/libnm-core/nm-utils.c
index 70c268fa..1080d9ea 100644
--- a/libnm-core/nm-utils.c
+++ b/libnm-core/nm-utils.c
@@ -2399,8 +2399,8 @@ nm_utils_file_is_private_key (const char *filename, gboolean *out_encrypted)
 	const char *extensions[] = { ".der", ".pem", ".p12", ".key", NULL };
 
 	g_return_val_if_fail (filename != NULL, FALSE);
-	g_return_val_if_fail (out_encrypted == NULL || *out_encrypted == FALSE, FALSE);
 
+	NM_SET_OUT (out_encrypted, FALSE);
 	if (!file_has_extension (filename, extensions))
 		return FALSE;