summaryrefslogtreecommitdiff
path: root/source3
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
commit203c2301ebd30761e5d5cf7c0b02ac68ef20a9b4 (patch)
tree163ccf879b8151aedbd3f6fc458ce7d5e6c24ec6 /source3
parentbf65820af242786bd66d814fc3e9d89920a49f8e (diff)
downloadsamba-203c2301ebd30761e5d5cf7c0b02ac68ef20a9b4.tar.gz
samba-203c2301ebd30761e5d5cf7c0b02ac68ef20a9b4.tar.bz2
samba-203c2301ebd30761e5d5cf7c0b02ac68ef20a9b4.zip
Fix for null command description in rpcclient help. From Benjamin Kuit
<bj@it.uts.edu.au>. (This used to be commit 60d1d0bfa93bfb8264b117147b651b521dbf28ce)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpcclient/rpcclient.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c
index f57b4f2e48..bf41e8dc28 100644
--- a/source3/rpcclient/rpcclient.c
+++ b/source3/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++;
}