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:
parent
1e315b0013
commit
5abdc58f98
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user