git.samba.org
/
jpeach
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d980ee5
)
r25498: Remove checks that are always true.
author
Jelmer Vernooij
<jelmer@samba.org>
Wed, 3 Oct 2007 22:23:37 +0000
(22:23 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:31:10 +0000
(12:31 -0500)
source/smbd/utmp.c
patch
|
blob
|
history
diff --git
a/source/smbd/utmp.c
b/source/smbd/utmp.c
index 52174c4d8379484a27ea88e087ecd84a318fe8ce..7f437407549094ba525366b6ef452d3e222ae133 100644
(file)
--- 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);