diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/param/loadparm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 246023ba47..f7f12bbe80 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -1516,6 +1516,9 @@ static char *lp_string(const char *s) if (!ret) return NULL; + /* Note: StrnCpy touches len+1 bytes, but we allocate 100 + * extra bytes so we're OK. */ + if (!s) *ret = 0; else |