[pkg-opensc-commit] [engine-pkcs11] 93/152: Add missing braces. Thanks to Umberto Rustichelli for the report.

Eric Dorland eric at moszumanska.debian.org
Mon Oct 19 03:11:20 UTC 2015


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository engine-pkcs11.

commit 4fda72dfaf419bd0178d7880c1d0a47ca0ea5b8e
Author: Martin Paljak <martin at martinpaljak.net>
Date:   Thu Sep 23 13:07:09 2010 +0000

    Add missing braces. Thanks to Umberto Rustichelli for the report.
    
    See http://www.opensc-project.org/pipermail/opensc-devel/2010-September/014996.html
---
 src/engine_pkcs11.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/engine_pkcs11.c b/src/engine_pkcs11.c
index 98f68d7..c1b8fbb 100644
--- a/src/engine_pkcs11.c
+++ b/src/engine_pkcs11.c
@@ -364,9 +364,10 @@ static int parse_slot_id_string(const char *slot_id, int *slot,
 	}
 
 	/* ... or "label_" */
-	if (strncmp(slot_id + i, "label_", 6) == 0)
+	if (strncmp(slot_id + i, "label_", 6) == 0) {
 		*slot = n;
 		return (*label = strdup(slot_id + i + 6)) != NULL;
+	}
 
 	fprintf(stderr, "could not parse string!\n");
 	return 0;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/engine-pkcs11.git



More information about the pkg-opensc-commit mailing list