=================================================================== RCS file: /cvs/mandoc/mandocdb.c,v retrieving revision 1.212 retrieving revision 1.213 diff -u -p -r1.212 -r1.213 --- mandoc/mandocdb.c 2016/01/08 02:13:39 1.212 +++ mandoc/mandocdb.c 2016/01/08 02:53:13 1.213 @@ -1,4 +1,4 @@ -/* $Id: mandocdb.c,v 1.212 2016/01/08 02:13:39 schwarze Exp $ */ +/* $Id: mandocdb.c,v 1.213 2016/01/08 02:53:13 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons * Copyright (c) 2011-2016 Ingo Schwarze @@ -1134,8 +1134,7 @@ mpages_merge(struct mparse *mp) man = NULL; sodest = NULL; - mparse_open(mp, &fd, mlink->file); - if (fd == -1) { + if ((fd = mparse_open(mp, mlink->file)) == -1) { say(mlink->file, "&open"); goto nextpage; }