Fix for null command description in rpcclient help. From Benjamin Kuit
authorTim Potter <tpot@samba.org>
Fri, 21 Dec 2001 01:16:37 +0000 (01:16 +0000)
committerTim Potter <tpot@samba.org>
Fri, 21 Dec 2001 01:16:37 +0000 (01:16 +0000)
<bj@it.uts.edu.au>.
(This used to be commit 60d1d0bfa93bfb8264b117147b651b521dbf28ce)

source3/rpcclient/rpcclient.c

index f57b4f2e483527f8205b1ea812333055ce8fbf05..bf41e8dc28ec8f2ec4ef159e940dc019b9afd25d 100644 (file)
@@ -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++;
                }