cpp: Check fpr of import status for NULL
* lang/cpp/src/importresult.cpp (GpgME::ImportResult::Private): Check fpr for NULL. -- GnuPG-bug-id: 5713
This commit is contained in:
parent
305d8668ca
commit
300776f391
@ -48,7 +48,9 @@ public:
|
|||||||
// We just need to handle the pointers in the structs:
|
// We just need to handle the pointers in the structs:
|
||||||
for (gpgme_import_status_t is = r.imports ; is ; is = is->next) {
|
for (gpgme_import_status_t is = r.imports ; is ; is = is->next) {
|
||||||
gpgme_import_status_t copy = new _gpgme_import_status(*is);
|
gpgme_import_status_t copy = new _gpgme_import_status(*is);
|
||||||
|
if (is->fpr) {
|
||||||
copy->fpr = strdup(is->fpr);
|
copy->fpr = strdup(is->fpr);
|
||||||
|
}
|
||||||
copy->next = nullptr;
|
copy->next = nullptr;
|
||||||
imports.push_back(copy);
|
imports.push_back(copy);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user