[gnome-control-center/wip/lantw/fix-user-panel-problem-on-freebsd: 55/57] user-accounts: Initialize GError* to NULL before use
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/lantw/fix-user-panel-problem-on-freebsd: 55/57] user-accounts: Initialize GError* to NULL before use
- Date: Tue, 10 Sep 2019 23:33:15 +0000 (UTC)
commit 54caab7b0762b553e1e6663f416474fce77e4c51
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]