[SCM] Samba Shared Repository - branch v3-4-test updated -
release-4-0-0alpha7-810-gcb8c7f2
Volker Lendecke
vlendec at samba.org
Thu Apr 23 08:44:57 GMT 2009
The branch, v3-4-test has been updated
via cb8c7f2291897cc6d9bffdb48f4baca80161c2f8 (commit)
from 7310c258a07f9f9da0ba736919f9021ab8125f66 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-test
- Log -----------------------------------------------------------------
commit cb8c7f2291897cc6d9bffdb48f4baca80161c2f8
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