summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/utils/net_ads.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c
index 34a357cd46..03fbb29f5b 100644
--- a/source3/utils/net_ads.c
+++ b/source3/utils/net_ads.c
@@ -250,12 +250,14 @@ static BOOL usergrp_display(char *field, void **values, void *data_area)
char **disp_fields = (char **) data_area;
if (!field) { /* must be end of record */
- if (!strchr_m(disp_fields[0], '$')) {
- if (disp_fields[1])
- d_printf("%-21.21s %s\n",
- disp_fields[0], disp_fields[1]);
- else
- d_printf("%s\n", disp_fields[0]);
+ if (disp_fields[0]) {
+ if (!strchr_m(disp_fields[0], '$')) {
+ if (disp_fields[1])
+ d_printf("%-21.21s %s\n",
+ disp_fields[0], disp_fields[1]);
+ else
+ d_printf("%s\n", disp_fields[0]);
+ }
}
SAFE_FREE(disp_fields[0]);
SAFE_FREE(disp_fields[1]);