Fix "Possible null pointer dereference" error

This commit is contained in:
Philippe Teuwen 2013-03-05 23:56:38 +01:00
parent e55efd6db0
commit 03bc30f116

View file

@ -172,7 +172,7 @@ void
nfc_init(nfc_context **context)
{
*context = nfc_context_new();
if (!context) {
if (!*context) {
perror("malloc");
return;
}