* mdocml: Repair makewhatis -t, regression in rev.
@ 2016-08-01 20:53 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2016-08-01 20:53 UTC (permalink / raw)
To: source
Log Message:
-----------
Repair makewhatis -t, regression in rev. 1.221 reported by naddy@.
Modified Files:
--------------
mdocml:
mandocdb.c
Revision Data
-------------
Index: mandocdb.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/mandocdb.c,v
retrieving revision 1.224
retrieving revision 1.225
diff -Lmandocdb.c -Lmandocdb.c -u -p -r1.224 -r1.225
--- mandocdb.c
+++ mandocdb.c
@@ -427,7 +427,8 @@ mandocdb(int argc, char *argv[])
if (OP_TEST != op && 0 == set_basedir(path_arg, 1))
goto out;
- if ((dba = dba_read(MANDOC_DB)) != NULL) {
+ dba = nodb ? dba_new(128) : dba_read(MANDOC_DB);
+ if (dba != NULL) {
/*
* The existing database is usable. Process
* all files specified on the command-line.
@@ -444,7 +445,7 @@ mandocdb(int argc, char *argv[])
use_all = 1;
for (i = 0; i < argc; i++)
filescan(argv[i]);
- if (OP_TEST != op)
+ if (nodb == 0)
dbprune(dba);
} else {
/*
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-08-01 20:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-01 20:53 mdocml: Repair makewhatis -t, regression in rev schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).