[gnome-keyring] Avoid using uninitialized variables and allow strict builds



commit 059af12f028e0217462f09204cc51b2e1fed44fd
Author: Jakub Jelen <jjelen redhat com>
Date:   Tue Aug 15 15:40:22 2017 +0200

    Avoid using uninitialized variables and allow strict builds

 pkcs11/gkm/mock-module.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pkcs11/gkm/mock-module.c b/pkcs11/gkm/mock-module.c
index 4b4fb55..124e120 100644
--- a/pkcs11/gkm/mock-module.c
+++ b/pkcs11/gkm/mock-module.c
@@ -103,7 +103,7 @@ mock_module_object_new (GkmSession *session)
        gchar *data;
 
        CK_ATTRIBUTE attrs[] = {
-               { CKA_VALUE, data, n_data },
+               { CKA_VALUE, NULL, 0 },
                { CKA_TOKEN, &token, sizeof (token) },
                { CKA_CLASS, &klass, sizeof (klass) },
                { CKA_CERTIFICATE_TYPE, &type, sizeof (type) },


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]