diff options
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/cmd_wkssvc.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; i<num_entries; i++) { - const char *user; + const char *user = NULL; switch (info.level) { case 0: user = info.ctr.user0->user0[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; |