mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2024-12-22 12:48:51 +00:00
Merge branch 'wip/dueno/secret-tool-crash' into 'master'
secret-tool: Fix secret_password_clearv_sync return value check See merge request GNOME/libsecret!74
This commit is contained in:
commit
dfcfd2e0a2
@ -142,7 +142,10 @@ secret_tool_action_clear (int argc,
|
|||||||
g_hash_table_unref (attributes);
|
g_hash_table_unref (attributes);
|
||||||
|
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
g_printerr ("%s: %s\n", g_get_prgname (), error->message);
|
if (error != NULL) {
|
||||||
|
g_printerr ("%s: %s\n", g_get_prgname (), error->message);
|
||||||
|
g_error_free (error);
|
||||||
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -215,6 +218,7 @@ secret_tool_action_lookup (int argc,
|
|||||||
|
|
||||||
if (error != NULL) {
|
if (error != NULL) {
|
||||||
g_printerr ("%s: %s\n", g_get_prgname (), error->message);
|
g_printerr ("%s: %s\n", g_get_prgname (), error->message);
|
||||||
|
g_error_free (error);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -482,6 +486,7 @@ secret_tool_action_search (int argc,
|
|||||||
|
|
||||||
if (error != NULL) {
|
if (error != NULL) {
|
||||||
g_printerr ("%s: %s\n", g_get_prgname (), error->message);
|
g_printerr ("%s: %s\n", g_get_prgname (), error->message);
|
||||||
|
g_error_free (error);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user