diff options
author | 2014-04-15 23:48:51 +0000 | |
---|---|---|
committer | 2014-04-15 23:48:51 +0000 | |
commit | d72b7fb40b410b373f19c95710d8ed0de0dec1f5 (patch) | |
tree | 3b2ee7390610f20841449afcdeba5b0609bfd466 /mansearch.c | |
parent | 60cdfc3f4205f5efe732cd1a3d6c5aa82ed52fbe (diff) | |
download | mandoc-d72b7fb40b410b373f19c95710d8ed0de0dec1f5.tar.gz mandoc-d72b7fb40b410b373f19c95710d8ed0de0dec1f5.tar.zst mandoc-d72b7fb40b410b373f19c95710d8ed0de0dec1f5.zip |
At the end of mansearch(), fchdir() back to where we started from;
this is cleaner and helps to not scatter gmon.out files all over
the place when profiling.
Diffstat (limited to 'mansearch.c')
-rw-r--r-- | mansearch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mansearch.c b/mansearch.c index d7c75072..6eab7e07 100644 --- a/mansearch.c +++ b/mansearch.c @@ -1,4 +1,4 @@ -/* $Id: mansearch.c,v 1.28 2014/04/11 15:46:52 schwarze Exp $ */ +/* $Id: mansearch.c,v 1.29 2014/04/15 23:48:51 schwarze Exp $ */ /* * Copyright (c) 2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -218,6 +218,7 @@ mansearch(const struct mansearch *search, } sql = sql_statement(e); + printf("%s\n", sql); /* * Loop over the directories (containing databases) for us to |