diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-11-29 09:34:14 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-11-29 09:34:14 +0000 |
commit | c33cdfcd56cf8bc964bb0e82684fedc7f532d259 (patch) | |
tree | 4696c5ee6f959dfbe0b7da9bf58e4c23c27cd584 /conv.c | |
parent | [w3m-dev 02579] Use environment variables CC, CFLAGS, LDFLAGS (diff) | |
download | w3m-c33cdfcd56cf8bc964bb0e82684fedc7f532d259.tar.gz w3m-c33cdfcd56cf8bc964bb0e82684fedc7f532d259.zip |
[w3m-dev 02584] code cleanup again
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r-- | conv.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: conv.c,v 1.5 2001/11/27 18:23:33 ukai Exp $ */ +/* $Id: conv.c,v 1.6 2001/11/29 09:34:14 ukai Exp $ */ #include <stdio.h> #include <string.h> #include "fm.h" @@ -268,7 +268,7 @@ cConvSE(Str is) static Str cConvJE(Str is) { /* Convert ISO-2022-JP to EUC-JP */ - uchar *p, ub; + uchar *p, ub = 0; char cset = CSET_ASCII; int state = ISO_NOSTATE; Str os = Strnew_size(is->length); @@ -354,7 +354,7 @@ static Str _cConvEE(Str is, char is_euc) { /* Convert EUC-JP to EUC-JP / ISO-2022-JP * (no JIS X 0201-Kana, 0212, 0213-2) */ - uchar *p, ub, euc = 0; + uchar *p, ub = 0, euc = 0; int state = EUC_NOSTATE; char cset = CSET_ASCII; Str os; @@ -462,7 +462,7 @@ put_sjis(Str os, uchar ub, uchar lb) static Str cConvES(Str is) { /* Convert EUC-JP to Shift-JIS */ - uchar *p, ub; + uchar *p, ub = 0; int state = EUC_NOSTATE; Str os = Strnew_size(is->length); uchar *endp = (uchar *) & is->ptr[is->length]; |