summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-04-23 10:42:43 +0200
committerVolker Lendecke <vl@samba.org>2009-04-23 10:44:51 +0200
commit5abdc58f9822edbbf291c625dec7304c09f12e28 (patch)
tree8f54530ad4df17bbd505a220639f04610c89bf50
parent1e315b0013701737437c1562dc2b9f70dc9679ab (diff)
downloadsamba-5abdc58f9822edbbf291c625dec7304c09f12e28.tar.gz
samba-5abdc58f9822edbbf291c625dec7304c09f12e28.tar.bz2
samba-5abdc58f9822edbbf291c625dec7304c09f12e28.zip
Fix Coverity ID 884: DEADCODE
-rw-r--r--source3/lib/fault.c7
1 files changed, 4 insertions, 3 deletions
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);