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>
Thu, 30 Sep 2010 10:30:45 +0000 (12:30 +0200)
commited96d1e748adbbd451093317d2ca5f359b1bcba4
treee007de9f6532c040c2ff59d8b59858648d35f5e8
parentdb7977b627d91c31f9424e9fde0cb5fcd6054100
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.
(cherry picked from commit 84127dd50420a7d0e8f389d4af15d52fca6cd809)
lib/smbconf/smbconf_txt.c