libsmbconf: parse an empty share as empty share, not as NULL.
authorMichael Adam <obnox@samba.org>
Mon, 27 Sep 2010 10:43:39 +0000 (12:43 +0200)
committerMichael Adam <obnox@samba.org>
Mon, 27 Sep 2010 10:43:39 +0000 (12:43 +0200)
commit84127dd50420a7d0e8f389d4af15d52fca6cd809
tree27f55836d72f87e496f1184c3ae942b21e8d3d87
parentf4f5ad97741d4c6be32573338baa346808e1f108
libsmbconf: parse an empty share as empty share, not as NULL.

This fixes a segfault in net conf import:
Importing a text file with an empty share resulted in a segfault.
Now this creates an empty share in registry config, just as it
should.

Thanks to Gregor Beck <gbeck@sernet.de> for reporting.
lib/smbconf/smbconf_txt.c