diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/web/cgi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c index d289613b4b..046dd3bee6 100644 --- a/source3/web/cgi.c +++ b/source3/web/cgi.c @@ -80,8 +80,9 @@ static char *grab_line(FILE *f, int *cl) } - - ret[i] = 0; + if (ret) { + ret[i] = 0; + } return ret; } |