s3-param Remove .offset == 0 checks as 'valid' will have offset 0
authorAndrew Bartlett <abartlet@samba.org>
Wed, 29 Jun 2011 02:36:06 +0000 (12:36 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 29 Jun 2011 02:42:04 +0000 (04:42 +0200)
commit573109d346b67a9f711187636a2cae3ae7f1cbcf
treebd0fb1eb1e99f2783b595d447bff3aaa21398a5e
parent0e38199a84368273739e440eb0163b95651dad7f
s3-param Remove .offset == 0 checks as 'valid' will have offset 0

The validity of an entry in the parm_table is by having a .p_class of
P_LOCAL or P_GLOBAL rather than P_SEPARATOR.  Termination of the table
is by having a .label of non-NULL.  This is possible because there are
no longer any specially handled smb.conf options without a value in
the struct loadparm_globals or struct loadparm_service.

This is required because the first element in the structure will have
.offset = 0, and skipping that would be unfortunate (particularly as it
is the vital 'valid' variable).

Andrew Bartlett
source3/param/loadparm.c