svn commit: samba r25498 - in branches/SAMBA_3_2: . source/smbd

jelmer at samba.org jelmer at samba.org
Wed Oct 3 22:23:38 GMT 2007


Author: jelmer
Date: 2007-10-03 22:23:37 +0000 (Wed, 03 Oct 2007)
New Revision: 25498

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25498

Log:
Remove checks that are always true.
Modified:
   branches/SAMBA_3_2/
   branches/SAMBA_3_2/source/smbd/utmp.c


Changeset:

Property changes on: branches/SAMBA_3_2
___________________________________________________________________
Name: bzr:revision-info
...skipped...
Name: bzr:revision-id:v3-trunk0
...skipped...

Modified: branches/SAMBA_3_2/source/smbd/utmp.c
===================================================================
--- branches/SAMBA_3_2/source/smbd/utmp.c	2007-10-03 22:07:46 UTC (rev 25497)
+++ branches/SAMBA_3_2/source/smbd/utmp.c	2007-10-03 22:23:37 UTC (rev 25498)
@@ -220,13 +220,13 @@
 	}
 
 	/* 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);



More information about the samba-cvs mailing list