links

lynx-like text mode web browser
git clone anongit@rnpnr.xyz:links.git
Log | Files | Refs | Feed | README | LICENSE

Commit: 2605e67b4c6641882708110a067efbc7efcf9a7b
Parent: 317393671eaeb2021ab7305eeb26e3dde80c3966
Author: Randy Palamar
Date:   Tue,  7 Mar 2023 11:12:02 -0700

don't pass uninitialized variable in file_func()

Diffstat:
Mfile.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/file.c b/file.c @@ -321,7 +321,7 @@ dir: last_uid = -1; last_gid = -1; file = NULL; - fl = add_to_str(&file, fl, cast_uchar "<html><head><title>"); + fl = add_to_str(&file, 0, cast_uchar "<html><head><title>"); flo = fl; fl = add_conv_str(&file, fl, name, (int)strlen(cast_const_char name), -1);