summaryrefslogtreecommitdiff
path: root/lib/tpm.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-04-15 13:58:05 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-04-15 13:58:05 +0200
commit86ff57e8f9f5f33d820b64b5cfdc60cb830b6d94 (patch)
tree855039c1ffdca5afd75af0021b592869517d7a34 /lib/tpm.c
parent83b64980f5ec9c3110cf0cd44d8815271ece7996 (diff)
downloadgnutls-86ff57e8f9f5f33d820b64b5cfdc60cb830b6d94.tar.gz
several bug fixes due to coverity.
Diffstat (limited to 'lib/tpm.c')
-rw-r--r--lib/tpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tpm.c b/lib/tpm.c
index 86b0047a9b..7ddfdfb295 100644
--- a/lib/tpm.c
+++ b/lib/tpm.c
@@ -808,7 +808,7 @@ static int decode_tpmkey_url(const char *url, struct tpmkey_url_st *s)
return gnutls_assert_val(GNUTLS_E_PARSING_ERROR);
}
- if ((p = strstr(url, "storage=user")) != NULL)
+ if (strstr(url, "storage=user") != NULL)
s->storage = TSS_PS_TYPE_USER;
else
s->storage = TSS_PS_TYPE_SYSTEM;