From d5e30dec8bbc695d640df335a83554f1666907b5 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 17 Feb 2010 15:15:47 +0100 Subject: s3-rpcclient: fix uninitialized variable in wkssvc_enumerateusers. Guenther --- source3/rpcclient/cmd_wkssvc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/rpcclient/cmd_wkssvc.c b/source3/rpcclient/cmd_wkssvc.c index 34ad57650c..147501049a 100644 --- a/source3/rpcclient/cmd_wkssvc.c +++ b/source3/rpcclient/cmd_wkssvc.c @@ -190,7 +190,7 @@ static WERROR cmd_wkssvc_enumerateusers(struct rpc_pipe_client *cli, } for (i=0; iuser0[i].user_name; @@ -202,7 +202,7 @@ static WERROR cmd_wkssvc_enumerateusers(struct rpc_pipe_client *cli, info.ctr.user1->user1[i].user_name); break; } - printf("%s\n", user); + printf("%s\n", user ? user : "(null)"); } return werr; -- cgit