From c8c9db9f8ffe4df25ffada78a229124212fee583 Mon Sep 17 00:00:00 2001 From: Max Moser Date: Thu, 5 Apr 2018 21:22:29 +0200 Subject: [PATCH] Add format specifier for error --- properties/nm-wireguard-editor.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/properties/nm-wireguard-editor.c b/properties/nm-wireguard-editor.c index 2ad07c1..a2e780c 100644 --- a/properties/nm-wireguard-editor.c +++ b/properties/nm-wireguard-editor.c @@ -176,7 +176,8 @@ typedef gboolean (*CheckFunc)(const char *str); static gboolean check (WireguardEditorPrivate *priv, char *widget_name, - CheckFunc chk, const char *key, + CheckFunc chk, + const char *key, gboolean set_error, GError **error) { @@ -193,6 +194,7 @@ check (WireguardEditorPrivate *priv, g_set_error (error, NMV_EDITOR_PLUGIN_ERROR, NMV_EDITOR_PLUGIN_ERROR_INVALID_PROPERTY, + "%s", key); } return FALSE;