diff options
author | delphij <delphij@FreeBSD.org> | 2009-03-28 07:09:51 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2009-03-28 07:09:51 +0000 |
commit | 67cfc8aca68a9ff46aee6d7f86315f2c57f4db64 (patch) | |
tree | b4c6bbf80b2c06d69f3a9c66f3c7f8a47b35477e /lib/libc/regex/engine.c | |
parent | 643b09b14049932ff77ddf2e99f6935754899f36 (diff) | |
download | FreeBSD-src-67cfc8aca68a9ff46aee6d7f86315f2c57f4db64.zip FreeBSD-src-67cfc8aca68a9ff46aee6d7f86315f2c57f4db64.tar.gz |
Simplify the logic when determining whether to zero out a db file to after
open(). The previous logic only initializes the database when O_CREAT is
set, but as long as we can open and write the database, and the database
is empty, we should initialize it anyway.
Obtained from: OpenBSD
Diffstat (limited to 'lib/libc/regex/engine.c')
0 files changed, 0 insertions, 0 deletions