summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-10-03 22:23:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:31:10 -0500
commitbb9f1e514620dde7defdb46edacdfc6f84d26d9d (patch)
treef183684ecf1bce5a676a79224e911ea51f261e00 /source3
parent30e4012396b1f73a4ba03034b546af7daed9c87b (diff)
downloadsamba-bb9f1e514620dde7defdb46edacdfc6f84d26d9d.tar.gz
samba-bb9f1e514620dde7defdb46edacdfc6f84d26d9d.tar.bz2
samba-bb9f1e514620dde7defdb46edacdfc6f84d26d9d.zip
r25498: Remove checks that are always true.
(This used to be commit 2f2bdfa0df758104a9a2fcafe49d6215d8753536)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/utmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/utmp.c b/source3/smbd/utmp.c
index 52174c4d83..7f43740754 100644
--- a/source3/smbd/utmp.c
+++ b/source3/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);