1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

Fix Coverity ID 884: DEADCODE

This commit is contained in:
Volker Lendecke 2009-04-23 10:42:43 +02:00
parent 1e315b0013
commit 5abdc58f98

View File

@ -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);