Spotted by GCC 13:
pkcs11.c: In function 'gnutls_pkcs11_token_get_info':
pkcs11.c:2535:25: error: 'str' may be used uninitialized [-Werror=maybe-uninitialized]
2535 | memcpy(output, str, len);
| ^~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Daiki Ueno <ueno@gnu.org>
size_t *output_size)
{
struct p11_kit_uri *info = NULL;
- const uint8_t *str;
+ const uint8_t *str = NULL;
char *temp_str = NULL;
size_t len;
int ret;