]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
archelp: Never pass NULL as mtime.
authorVladimir Serbinenko <phcoder@gmail.com>
Mon, 27 Jul 2015 11:19:02 +0000 (13:19 +0200)
committerVladimir Serbinenko <phcoder@gmail.com>
Mon, 27 Jul 2015 11:19:02 +0000 (13:19 +0200)
Moves complexity from fs code (NULL check) to common code (passing non-NULL).

grub-core/fs/archelp.c

index 707f9a658d5ed542aed4788a9a6def6bccf985a1..0cf544f6fdfe7327498f42552d535e1bfabc3b60 100644 (file)
@@ -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)