libnm: fix assertion in nm_setting_user_set_data() to check input argument

This commit is contained in:
Thomas Haller
2020-11-02 18:27:50 +01:00
parent 9c3cfebe14
commit ac626c6892

View File

@@ -288,7 +288,7 @@ nm_setting_user_set_data(NMSettingUser *setting, const char *key, const char *va
NMSettingUserPrivate *priv;
gboolean changed = FALSE;
g_return_val_if_fail(NM_IS_SETTING(self), FALSE);
g_return_val_if_fail(NM_IS_SETTING_USER(self), FALSE);
g_return_val_if_fail(!error || !*error, FALSE);
if (!nm_setting_user_check_key(key, error))