diff options
Diffstat (limited to 'source/web')
-rw-r--r-- | source/web/cgi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/web/cgi.c b/source/web/cgi.c index d289613b4ba..046dd3bee62 100644 --- a/source/web/cgi.c +++ b/source/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; } |