X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=dump%2Fmain.c;h=a9a671d0d5b8fe2006cfc51bb83c6a573c64084e;hp=32db26dc02516bccc10f12d9a288d1c2ccb4e7a8;hb=e0267986934b9cf6f6c130a7779c999dff096804;hpb=dcac75e99795bff632344b98b56c6ba704c09edb diff --git a/dump/main.c b/dump/main.c index 32db26d..a9a671d 100644 --- a/dump/main.c +++ b/dump/main.c @@ -37,7 +37,7 @@ #ifndef lint static const char rcsid[] = - "$Id: main.c,v 1.88 2003/11/22 16:52:16 stelian Exp $"; + "$Id: main.c,v 1.89 2004/01/04 10:48:35 stelian Exp $"; #endif /* not lint */ #include @@ -1276,13 +1276,13 @@ do_exclude_ino(dump_ino_t ino, const char *reason) /* check for enough mem; initialize */ if ((ino/8 + 1) > iexclude_bitmap_bytes) { if (iexclude_bitmap_bytes == 0) { + unsigned int j; iexclude_bitmap_bytes = 2 * (ino/8 + 1); iexclude_bitmap = (char*) malloc(iexclude_bitmap_bytes); if (iexclude_bitmap == NULL) { msg("allocating memory failed\n"); exit(X_STARTUP); } - unsigned int j; for (j = 0; j < iexclude_bitmap_bytes; j++) iexclude_bitmap[j] = 0; }