Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-chain-wallet
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
cellframe
libdap-chain-wallet
Commits
7b700cdc
Commit
7b700cdc
authored
5 years ago
by
alexander.lysikov
Browse files
Options
Downloads
Patches
Plain Diff
added the checks for null pointer
parent
14ad232a
Branches
feature-2963
Branches containing commit
No related tags found
1 merge request
!12
added the checks for null pointer
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dap_chain_wallet.c
+2
-0
2 additions, 0 deletions
dap_chain_wallet.c
dap_chain_wallet_internal.h
+1
-1
1 addition, 1 deletion
dap_chain_wallet_internal.h
with
3 additions
and
1 deletion
dap_chain_wallet.c
+
2
−
0
View file @
7b700cdc
...
...
@@ -253,6 +253,8 @@ size_t dap_chain_wallet_get_certs_number( dap_chain_wallet_t * a_wallet)
*/
dap_enc_key_t
*
dap_chain_wallet_get_key
(
dap_chain_wallet_t
*
a_wallet
,
uint32_t
a_pkey_idx
)
{
if
(
!
a_wallet
)
return
NULL
;
DAP_CHAIN_WALLET_INTERNAL_LOCAL
(
a_wallet
);
if
(
l_wallet_internal
->
certs_count
>
a_pkey_idx
){
return
l_wallet_internal
->
certs
[
a_pkey_idx
]
?
...
...
This diff is collapsed.
Click to expand it.
dap_chain_wallet_internal.h
+
1
−
1
View file @
7b700cdc
...
...
@@ -64,7 +64,7 @@ typedef struct dap_chain_wallet_internal
dap_cert_t
**
certs
;
}
dap_chain_wallet_internal_t
;
#define DAP_CHAIN_WALLET_INTERNAL(a) ((dap_chain_wallet_internal_t *) a->_internal
)
#define DAP_CHAIN_WALLET_INTERNAL(a) (
a ?
(dap_chain_wallet_internal_t *) a->_internal
: NULL
)
#define DAP_CHAIN_WALLET_INTERNAL_LOCAL(a) dap_chain_wallet_internal_t * l_wallet_internal = DAP_CHAIN_WALLET_INTERNAL(a)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment