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