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,8 +182,8 @@ conf_devices_load(const char *dirname, nfc_context *context)
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
closedir(d);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue