git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2cb052f
)
Fix two "this will never be null" warnings.
author
Jeremy Allison
<jra@samba.org>
Thu, 15 May 2008 02:02:14 +0000
(19:02 -0700)
committer
Jeremy Allison
<jra@samba.org>
Thu, 15 May 2008 02:02:14 +0000
(19:02 -0700)
Jeremy.
source/smbd/utmp.c
patch
|
blob
|
history
diff --git
a/source/smbd/utmp.c
b/source/smbd/utmp.c
index b1735dfcc49c1e48e0d7fe3851db0b4bdccbee05..8a7ac26d12ca78f0d4541c4e7b1769db8709e1eb 100644
(file)
--- 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);