summaryrefslogtreecommitdiffstats
path: root/source/rpcclient
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-12-21 01:16:37 +0000
committerTim Potter <tpot@samba.org>2001-12-21 01:16:37 +0000
commit60d1d0bfa93bfb8264b117147b651b521dbf28ce (patch)
tree1b2f9993936656c24d9eb1edc278985b098e75ed /source/rpcclient
parent22e510ea0d69356be4fd2fa5ad9e9f4e84f62337 (diff)
downloadsamba-60d1d0bfa93bfb8264b117147b651b521dbf28ce.tar.gz
samba-60d1d0bfa93bfb8264b117147b651b521dbf28ce.tar.xz
samba-60d1d0bfa93bfb8264b117147b651b521dbf28ce.zip
Fix for null command description in rpcclient help. From Benjamin Kuit
<bj@it.uts.edu.au>.
Diffstat (limited to 'source/rpcclient')
-rw-r--r--source/rpcclient/rpcclient.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/rpcclient/rpcclient.c b/source/rpcclient/rpcclient.c
index f57b4f2e483..bf41e8dc28e 100644
--- a/source/rpcclient/rpcclient.c
+++ b/source/rpcclient/rpcclient.c
@@ -292,7 +292,8 @@ static NTSTATUS cmd_help(struct cli_state *cli, TALLOC_CTX *mem_ctx,
while(tmp_set->name) {
printf("%15s\t\t%s\n", tmp_set->name,
- tmp_set->description);
+ tmp_set->description ? tmp_set->description:
+ "");
tmp_set++;
}