summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/engine.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2009-03-28 07:09:51 +0000
committerdelphij <delphij@FreeBSD.org>2009-03-28 07:09:51 +0000
commit67cfc8aca68a9ff46aee6d7f86315f2c57f4db64 (patch)
treeb4c6bbf80b2c06d69f3a9c66f3c7f8a47b35477e /lib/libc/regex/engine.c
parent643b09b14049932ff77ddf2e99f6935754899f36 (diff)
downloadFreeBSD-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
OpenPOWER on IntegriCloud