diff options
author | Ignacio Casal Quinteiro <qignacio@amazon.com> | 2022-10-18 16:36:41 +0200 |
---|---|---|
committer | Ignacio Casal Quinteiro <qignacio@amazon.com> | 2022-10-18 16:47:38 +0200 |
commit | 6816b3e47463e3192d83a555071c7d5efe701b91 (patch) | |
tree | be418f1a04945fa571593bf884604d9138b1dcba /plugins | |
parent | 1526c3ae1930bce2320e2bea5591b62ea1a2102c (diff) | |
download | gnome-settings-daemon-6816b3e47463e3192d83a555071c7d5efe701b91.tar.gz |
smartcard-manager: reduce variable scope
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/smartcard/gsd-smartcard-manager.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/smartcard/gsd-smartcard-manager.c b/plugins/smartcard/gsd-smartcard-manager.c index fc6ae0b0..292ea63c 100644 --- a/plugins/smartcard/gsd-smartcard-manager.c +++ b/plugins/smartcard/gsd-smartcard-manager.c @@ -122,13 +122,14 @@ load_nss (GsdSmartcardManager *self) if (context == NULL) { gsize error_message_size; - char *error_message; error_message_size = PR_GetErrorTextLength (); if (error_message_size == 0) { g_debug ("NSS security system could not be initialized"); } else { + char *error_message; + error_message = g_alloca (error_message_size); PR_GetErrorText (error_message); |