From f4af7743f144b7e5b89bda706f3d89e023103a38 Mon Sep 17 00:00:00 2001 From: "ludovic.rousseau" Date: Sat, 5 Feb 2011 21:00:38 +0000 Subject: [PATCH] Remove dead code ctx.c:550:25: warning: Value stored to 'count' is never read ctx->conf_blocks[count++] = blocks[0]; ^~~~~~~ git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5153 c6295689-39f2-0310-b995-f0e70906c6a9 --- src/libopensc/ctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libopensc/ctx.c b/src/libopensc/ctx.c index f2328515..1a2876bc 100644 --- a/src/libopensc/ctx.c +++ b/src/libopensc/ctx.c @@ -547,7 +547,7 @@ static void process_config_file(sc_context_t *ctx, struct _sc_ctx_options *opts) if (strcmp(ctx->app_name, "default") != 0) { blocks = scconf_find_blocks(ctx->conf, NULL, "app", "default"); if (blocks[0]) - ctx->conf_blocks[count++] = blocks[0]; + ctx->conf_blocks[count] = blocks[0]; free(blocks); } /* Above we add 2 blocks at most, but conf_blocks has 3 elements,