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:
parent
aee56b9255
commit
999631588d
1 changed files with 1 additions and 1 deletions
|
@ -182,9 +182,9 @@ conf_devices_load(const char *dirname, nfc_context *context)
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
closedir(d);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
conf_load(nfc_context *context)
|
||||
|
|
Loading…
Add table
Reference in a new issue