[SCM] Samba Shared Repository - branch master updated -
release-4-0-0alpha7-1232-g5abdc58
Volker Lendecke
vlendec at samba.org
Thu Apr 23 08:44:24 GMT 2009
The branch, master has been updated
via 5abdc58f9822edbbf291c625dec7304c09f12e28 (commit)
from 1e315b0013701737437c1562dc2b9f70dc9679ab (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 5abdc58f9822edbbf291c625dec7304c09f12e28
Author: Volker Lendecke <vl at samba.org>
Date: Thu Apr 23 10:42:43 2009 +0200
Fix Coverity ID 884: DEADCODE
-----------------------------------------------------------------------
Summary of changes:
source3/lib/fault.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/lib/fault.c b/source3/lib/fault.c
index efd1ddd..51fc53b 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);
--
Samba Shared Repository
More information about the samba-cvs
mailing list