Fix "Possible null pointer dereference" error
This commit is contained in:
parent
e55efd6db0
commit
03bc30f116
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ void
|
||||||
nfc_init(nfc_context **context)
|
nfc_init(nfc_context **context)
|
||||||
{
|
{
|
||||||
*context = nfc_context_new();
|
*context = nfc_context_new();
|
||||||
if (!context) {
|
if (!*context) {
|
||||||
perror("malloc");
|
perror("malloc");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue