OSDN Git Service

ChangeLog, pass1.c:
authorTheodore Ts'o <tytso@mit.edu>
Tue, 23 Nov 1999 13:52:48 +0000 (13:52 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 23 Nov 1999 13:52:48 +0000 (13:52 +0000)
  pass1.c (process_inodes): Add shortcut handling; if
   process_inodes_count is zero, return right away, to avoid calling
   qsort with a non-positive count.

e2fsck/ChangeLog
e2fsck/pass1.c

index f55e275..4e0d3ea 100644 (file)
@@ -1,5 +1,9 @@
 1999-11-19    <tytso@valinux.com>
 
+       * pass1.c (process_inodes): Add shortcut handling; if
+               process_inodes_count is zero, return right away, to avoid
+               calling qsort with a non-positive count.
+
        * message.c (safe_print): Fix to properly display ^A, ^B, etc. and
                to print Delete as ^?
 
index cf821ee..e80fb56 100644 (file)
@@ -626,6 +626,8 @@ static void process_inodes(e2fsck_t ctx, char *block_buf)
 #if 0
        printf("begin process_inodes: ");
 #endif
+       if (process_inode_count == 0)
+               return;
        old_operation = ehandler_operation(0);
        old_stashed_inode = ctx->stashed_inode;
        old_stashed_ino = ctx->stashed_ino;