Fix Bug #5548 (segfauls in handle_include with %m macro expansion).
authorMichael Adam <obnox@samba.org>
Wed, 18 Jun 2008 12:50:53 +0000 (14:50 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 18 Jun 2008 12:50:53 +0000 (14:50 +0200)
commitc65b456c6a145d15b7fd27a2a3440a0709fc3277
treea64a548a5415398b1c6c3ae54af9280afbe40e77
parent7d5fb873bde0a84de522650945effeaf602c759e
Fix Bug #5548 (segfauls in handle_include with %m macro expansion).

In alloc_sub_basic, when expanding '%m', substitute "" instead of
NULL for remote_machine when this is NULL. Else a NULL string
is returned.

Michael
source/lib/substitute.c