summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2014-09-18 15:17:44 +0200
committerWerner Koch <wk@gnupg.org>2014-09-18 15:17:44 +0200
commit34b2e8c7dcb0edb28f99edbd788d73491334e3c0 (patch)
treef93c0a226a16e7b3a25fdf2a2c25a3cf8ea8636c
parentgpg: Silence a compiler warning. (diff)
downloadgnupg2-34b2e8c7dcb0edb28f99edbd788d73491334e3c0.tar.xz
gnupg2-34b2e8c7dcb0edb28f99edbd788d73491334e3c0.zip
sm: Silence compiler warnings.
* sm/certreqgen-ui.c (gpgsm_gencertreq_tty): Remove unused var I. * sm/certreqgen.c (proc_parameters): Init PUBLIC to avoid compiler warning.
-rw-r--r--sm/certreqgen-ui.c3
-rw-r--r--sm/certreqgen.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/sm/certreqgen-ui.c b/sm/certreqgen-ui.c
index 368dc5567..3ccd048c7 100644
--- a/sm/certreqgen-ui.c
+++ b/sm/certreqgen-ui.c
@@ -147,7 +147,6 @@ gpgsm_gencertreq_tty (ctrl_t ctrl, estream_t output_stream)
char *subject_name;
membuf_t mb_email, mb_dns, mb_uri, mb_result;
char *result = NULL;
- int i;
const char *s, *s2;
int selfsigned;
@@ -381,7 +380,7 @@ gpgsm_gencertreq_tty (ctrl_t ctrl, estream_t output_stream)
goto mem_error;
tty_printf (_("These parameters are used:\n"));
- for (s=result; (s2 = strchr (s, '\n')); s = s2+1, i++)
+ for (s=result; (s2 = strchr (s, '\n')); s = s2+1)
tty_printf (" %.*s\n", (int)(s2-s), s);
tty_printf ("\n");
diff --git a/sm/certreqgen.c b/sm/certreqgen.c
index 241e67df4..9720b80e2 100644
--- a/sm/certreqgen.c
+++ b/sm/certreqgen.c
@@ -437,7 +437,7 @@ proc_parameters (ctrl_t ctrl, struct para_data_s *para,
char numbuf[20];
unsigned char keyparms[100];
int rc = 0;
- ksba_sexp_t public;
+ ksba_sexp_t public = NULL;
ksba_sexp_t sigkey = NULL;
int seq;
size_t erroff, errlen;