mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-12 02:23:47 +00:00
Fix "Possible null pointer dereference" error
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user