summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/smbd/utmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/utmp.c b/source/smbd/utmp.c
index b1735dfcc49..8a7ac26d12c 100644
--- a/source/smbd/utmp.c
+++ b/source/smbd/utmp.c
@@ -221,13 +221,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);