From 2f2bdfa0df758104a9a2fcafe49d6215d8753536 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 3 Oct 2007 22:23:37 +0000 Subject: [PATCH] r25498: Remove checks that are always true. --- source/smbd/utmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/smbd/utmp.c b/source/smbd/utmp.c index 52174c4d837..7f437407549 100644 --- a/source/smbd/utmp.c +++ b/source/smbd/utmp.c @@ -220,13 +220,13 @@ static void uw_pathname(pstring fname, const char *uw_name, const char *uw_defau } /* For u-files and non-explicit w-dir, look for "utmp dir" */ - if (dirname == 0 || strlen(dirname) == 0) { + if (strlen(dirname) == 0) { pstrcpy(dirname,lp_utmpdir()); trim_char(dirname,'\0','/'); } /* If explicit directory above, use it */ - if (dirname != 0 && strlen(dirname) != 0) { + if (strlen(dirname) != 0) { pstrcpy(fname, dirname); pstrcat(fname, "/"); pstrcat(fname, uw_name);