Author: jerry
Date: 2005-08-05 04:48:02 +0000 (Fri, 05 Aug 2005)
New Revision: 9098

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

Log:
fix another usrmgr.exe crash when viewing user properties at debuglevel 10
Modified:
   branches/SAMBA_3_0/source/rpc_server/srv_samr_nt.c
   trunk/source/rpc_server/srv_samr_nt.c


Changeset:
Modified: branches/SAMBA_3_0/source/rpc_server/srv_samr_nt.c
===================================================================
--- branches/SAMBA_3_0/source/rpc_server/srv_samr_nt.c  2005-08-05 04:46:33 UTC 
(rev 9097)
+++ branches/SAMBA_3_0/source/rpc_server/srv_samr_nt.c  2005-08-05 04:48:02 UTC 
(rev 9098)
@@ -1229,7 +1229,7 @@
        }
 
        for (i = 0; i < num_names; i++) {
-               DEBUG(10, ("names[%d]:%s\n", i, *names[i] ? names[i] : ""));
+               DEBUG(10, ("names[%d]:%s\n", i, names[i] && *names[i] ? 
names[i] : ""));
                init_unistr2(&uni_name[i], names[i], UNI_FLAGS_NONE);
                init_uni_hdr(&hdr_name[i], &uni_name[i]);
        }

Modified: trunk/source/rpc_server/srv_samr_nt.c
===================================================================
--- trunk/source/rpc_server/srv_samr_nt.c       2005-08-05 04:46:33 UTC (rev 
9097)
+++ trunk/source/rpc_server/srv_samr_nt.c       2005-08-05 04:48:02 UTC (rev 
9098)
@@ -1228,7 +1228,7 @@
        }
 
        for (i = 0; i < num_names; i++) {
-               DEBUG(10, ("names[%d]:%s\n", i, *names[i] ? names[i] : ""));
+               DEBUG(10, ("names[%d]:%s\n", i, names[i] && *names[i] ? 
names[i] : ""));
                init_unistr2(&uni_name[i], names[i], UNI_FLAGS_NONE);
                init_uni_hdr(&hdr_name[i], &uni_name[i]);
        }

Reply via email to