[gnome-control-center/wip/lantw/fix-user-panel-problem-on-freebsd: 2/4] user-accounts: Initialize GError* to NULL before use.
- From: Ting-Wei Lan <lantw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/lantw/fix-user-panel-problem-on-freebsd: 2/4] user-accounts: Initialize GError* to NULL before use.
- Date: Thu, 29 Aug 2019 04:13:26 +0000 (UTC)
commit d0e6b82ac4840d4e490a33fe62b7361ff9936a6d
Author: Ting-Wei Lan <lantw src gnome org>
Date: Thu Aug 29 11:58:02 2019 +0800
user-accounts: Initialize GError* to NULL before use.
Otherwise, it causes warnings to be shown on the terminal when it is
used and quickly leads to a crash.
panels/user-accounts/user-utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/panels/user-accounts/user-utils.c b/panels/user-accounts/user-utils.c
index dfd3a2949..72401e40b 100644
--- a/panels/user-accounts/user-utils.c
+++ b/panels/user-accounts/user-utils.c
@@ -458,7 +458,7 @@ is_valid_username_async (const gchar *username,
isValidUsernameData *data;
gchar *argv[6];
GPid pid;
- GError *error;
+ GError *error = NULL;
task = g_task_new (NULL, cancellable, callback, callback_data);
g_task_set_source_tag (task, is_valid_username_async);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]