mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-18 12:20:58 +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) {
|
void pcptext_vault(vault_t *vault) {
|
||||||
|
if(vault != NULL) {
|
||||||
#ifdef HAVE_JSON
|
#ifdef HAVE_JSON
|
||||||
|
|
||||||
if(ptx->json) {
|
if(ptx->json) {
|
||||||
@@ -168,6 +169,7 @@ void pcptext_vault(vault_t *vault) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void pcpkey_printlineinfo(pcp_key_t *key) {
|
void pcpkey_printlineinfo(pcp_key_t *key) {
|
||||||
struct tm *c;
|
struct tm *c;
|
||||||
|
|||||||
Reference in New Issue
Block a user