gpg: Silence a compiler warning.

* g10/parse-packet.c (enum_sig_subpkt): Replace hack.
This commit is contained in:
Werner Koch 2014-09-18 15:08:51 +02:00
parent 327134934d
commit 6a0c3fa19c
1 changed files with 4 additions and 5 deletions

View File

@ -1428,11 +1428,10 @@ enum_sig_subpkt (const subpktarea_t * pktbuf, sigsubpkttype_t reqtype,
if (!pktbuf || reqseq == -1)
{
/* return some value different from NULL to indicate that
* there is no critical bit we do not understand. The caller
* will never use the value. Yes I know, it is an ugly hack */
return reqtype ==
SIGSUBPKT_TEST_CRITICAL ? (const byte *) &pktbuf : NULL;
static char dummy[] = "x";
/* Return a value different from NULL to indicate that
* there is no critical bit we do not understand. */
return reqtype == SIGSUBPKT_TEST_CRITICAL ? dummy : NULL;
}
buffer = pktbuf->data;
buflen = pktbuf->len;