w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit dabeef5697e12914592787b79505c4256eac3bcb
parent 45975c92651aa98fc033b5e48ebcd62e75dd0d91
Author: ukai <ukai>
Date:   Fri, 30 Nov 2001 10:30:07 +0000

[w3m-dev 02596]
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>

Diffstat:
MChangeLog | 5+++++
Mfile.c | 5++---
2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,8 @@ +2001-11-30 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp> + + * [w3m-dev 02596] + * file.c (acceptableEncoding): fix segfault if no decoder found + 2001-11-30 Fumitoshi UKAI <ukai@debian.or.jp> * [w3m-dev 02595] diff --git a/file.c b/file.c @@ -401,10 +401,9 @@ acceptableEncoding() pushText(l, d->encoding); } } + encodings = Strnew(); while ((p = popText(l)) != NULL) { - if (encodings == NULL) - encodings = Strnew(); - else + if (encodings->length) Strcat_charp(encodings, ", "); Strcat_charp(encodings, p); }