summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-05-14 19:02:14 -0700
committerJeremy Allison <jra@samba.org>2008-05-14 19:02:14 -0700
commit614063e0b892adb31c4b5c016669bc8e68da7632 (patch)
tree82a8efd526b188cfb2d374acbc3113525f6a7009
parent2cb052f4cfbaa12ca3333eda06cd3baed986d599 (diff)
downloadsamba-614063e0b892adb31c4b5c016669bc8e68da7632.tar.gz
Fix two "this will never be null" warnings.
Jeremy.
-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);