archelp: Never pass NULL as mtime.
Moves complexity from fs code (NULL check) to common code (passing non-NULL).
This commit is contained in:
parent
5fb1e859f7
commit
d3b464a7c0
1 changed files with 2 additions and 1 deletions
|
@ -249,9 +249,10 @@ grub_archelp_open (struct grub_archelp_data *data,
|
|||
while (1)
|
||||
{
|
||||
grub_uint32_t mode;
|
||||
grub_int32_t mtime;
|
||||
int restart;
|
||||
|
||||
if (arcops->find_file (data, &fn, NULL, &mode))
|
||||
if (arcops->find_file (data, &fn, &mtime, &mode))
|
||||
goto fail;
|
||||
|
||||
if (mode == GRUB_ARCHELP_ATTR_END)
|
||||
|
|
Loading…
Reference in a new issue