Commit 99963158 authored by Ludovic Rousseau's avatar Ludovic Rousseau

closedir() only if opendir() succeeds

Fix compiler warning:
conf.c:186:3: warning: Null pointer passed as an argument to a 'nonnull' parameter
  closedir(d);
  ^        ~
parent aee56b92
......@@ -182,8 +182,8 @@ conf_devices_load(const char *dirname, nfc_context *context)
}
}
}
closedir(d);
}
closedir(d);
}
void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment