fix segfault bug if given vault is NULL

This commit is contained in:
Thomas von Dein
2016-10-25 16:32:05 +02:00
parent 7672be2a8d
commit 0b1e843ee8

View File

@@ -109,6 +109,7 @@ void pcptext_key(char *keyid) {
}
void pcptext_vault(vault_t *vault) {
if(vault != NULL) {
#ifdef HAVE_JSON
if(ptx->json) {
@@ -168,6 +169,7 @@ void pcptext_vault(vault_t *vault) {
}
#endif
}
}
void pcpkey_printlineinfo(pcp_key_t *key) {
struct tm *c;