mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-15 12:03:44 +00:00
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); ^ ~
This commit is contained in:
@@ -182,8 +182,8 @@ conf_devices_load(const char *dirname, nfc_context *context)
|
||||
}
|
||||
}
|
||||
}
|
||||
closedir(d);
|
||||
}
|
||||
closedir(d);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user