From 85cc38f135c98b11953be2752ec480140307bc76 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sun, 6 Jun 2010 19:51:58 +0000 Subject: [PATCH] Fix bugs preventing wrap layer propmting from working. * Standard way to get object path from GkdSecretDispatch * Lots of minor little tweaks and bugs. --- gp11/gp11-attributes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gp11/gp11-attributes.c b/gp11/gp11-attributes.c index 35d42be..f99b13b 100644 --- a/gp11/gp11-attributes.c +++ b/gp11/gp11-attributes.c @@ -59,8 +59,8 @@ attribute_init (GP11Attribute *attr, gulong attr_type, memset (attr, 0, sizeof (GP11Attribute)); attr->type = attr_type; attr->length = length; - if (value && length) { - attr->value = (allocator) (NULL, length); + if (value) { + attr->value = (allocator) (NULL, length ? length : 1); g_assert (attr->value); memcpy (attr->value, value, length); } -- 2.7.4