From d72b7fb40b410b373f19c95710d8ed0de0dec1f5 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 15 Apr 2014 23:48:51 +0000 Subject: 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. --- mansearch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mansearch.c') 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 * Copyright (c) 2013, 2014 Ingo Schwarze @@ -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 -- cgit v1.2.3