mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-18 04:10:57 +01:00
fix segfault bug if given vault is NULL
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user