diff options
author | maxim <maxim@FreeBSD.org> | 2004-12-02 13:56:53 +0000 |
---|---|---|
committer | maxim <maxim@FreeBSD.org> | 2004-12-02 13:56:53 +0000 |
commit | 8cd02762f1ffb0214c07ebb1e60b1251d4937039 (patch) | |
tree | 78ec36e533a8552b84a19c8c88432429be460c27 /sbin/dump/dump.h | |
parent | 3e3573e4ca8ed69d0cbc87f05e2d8e06eedde33b (diff) | |
download | FreeBSD-src-8cd02762f1ffb0214c07ebb1e60b1251d4937039.zip FreeBSD-src-8cd02762f1ffb0214c07ebb1e60b1251d4937039.tar.gz |
o Do not dump core in -W if dumpdates was not readable and ddatev == NULL.
PR: bin/69977
o Remove unused ddates_in.
Obtained from: NetBSD
MFC after: 3 weeks
Diffstat (limited to 'sbin/dump/dump.h')
-rw-r--r-- | sbin/dump/dump.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dump/dump.h b/sbin/dump/dump.h index 75b33d5..2224782 100644 --- a/sbin/dump/dump.h +++ b/sbin/dump/dump.h @@ -164,13 +164,13 @@ struct dumpdates { time_t dd_ddate; }; int nddates; /* number of records (might be zero) */ -int ddates_in; /* we have read the increment file */ struct dumpdates **ddatev; /* the arrayfied version */ void initdumptimes(void); void getdumptime(void); void putdumptime(void); #define ITITERATE(i, ddp) \ - for (ddp = ddatev[i = 0]; i < nddates; ddp = ddatev[++i]) + if (ddatev != NULL) \ + for (ddp = ddatev[i = 0]; i < nddates; ddp = ddatev[++i]) void sig(int signo); |