netlogon_creds_cli: Avoid a static const struct
commit3101ac93e20027f8c0b9bfe59af55637ec1d5739
authorVolker Lendecke <vl@samba.org>
Fri, 25 Aug 2017 09:27:30 +0000 (25 11:27 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 16 Sep 2017 06:36:17 +0000 (16 08:36 +0200)
tree70059a977cd2f9012c0088dc83752fbc3d310362
parentb62bba83ba8544adfc3700e927247ec942735538
netlogon_creds_cli: Avoid a static const struct

Same number of .text bytes, but simpler code.

Yes, this is {{0}} instead of {0}, which I always promote. I've just read a
comment on stackoverflow (which I've unfortunately just closed the tab for :-()
that {{0}} might actually be the correct way to init a struct to zero if the
first struct element is again a struct. I'm lost. 25 years of C coding and I
have no clue of the language :-(

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
libcli/auth/netlogon_creds_cli.c