From 5abdc58f9822edbbf291c625dec7304c09f12e28 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 23 Apr 2009 10:42:43 +0200 Subject: Fix Coverity ID 884: DEADCODE --- source3/lib/fault.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/fault.c b/source3/lib/fault.c index efd1dddfd4..51fc53bb0d 100644 --- a/source3/lib/fault.c +++ b/source3/lib/fault.c @@ -194,17 +194,18 @@ static char *get_freebsd_corepath(void) */ static char *get_corepath(const char *logbase, const char *progname) { - char *tmp_corepath = NULL; +#if (defined(FREEBSD) && defined(HAVE_SYSCTLBYNAME)) /* @todo: Add support for the linux corepath. */ -#if (defined(FREEBSD) && defined(HAVE_SYSCTLBYNAME)) + + char *tmp_corepath = NULL; tmp_corepath = get_freebsd_corepath(); -#endif /* If this has been set correctly, we're done. */ if (tmp_corepath) { return tmp_corepath; } +#endif /* Fall back to the default. */ return get_default_corepath(logbase, progname); -- cgit