From 203c2301ebd30761e5d5cf7c0b02ac68ef20a9b4 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 21 Dec 2001 01:16:37 +0000 Subject: Fix for null command description in rpcclient help. From Benjamin Kuit . (This used to be commit 60d1d0bfa93bfb8264b117147b651b521dbf28ce) --- source3/rpcclient/rpcclient.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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++; } -- cgit