mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-02-19 08:16:35 +00:00
Fix "Possible null pointer dereference" error
This commit is contained in:
@@ -172,7 +172,7 @@ void
|
||||
nfc_init(nfc_context **context)
|
||||
{
|
||||
*context = nfc_context_new();
|
||||
if (!context) {
|
||||
if (!*context) {
|
||||
perror("malloc");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user