mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
libdthelp: Resolve uninitialized warnings
This commit is contained in:
parent
b807066429
commit
320576e069
18 changed files with 31 additions and 31 deletions
|
@ -492,14 +492,14 @@ FormatManPage(
|
|||
int italicCnt = 0;
|
||||
int result = 0;
|
||||
int cread;
|
||||
int lastLen;
|
||||
int lastLen = 0;
|
||||
int checkLen;
|
||||
int retWCLen;
|
||||
wchar_t lastWC;
|
||||
wchar_t retWC;
|
||||
char *rloc = in_buf;
|
||||
char *retStrPtr;
|
||||
char c;
|
||||
char c = 0;
|
||||
char retC;
|
||||
Boolean flag = False;
|
||||
enum State newState;
|
||||
|
|
|
@ -5091,11 +5091,11 @@ ProcessSDLAttribute(
|
|||
char *attrValue;
|
||||
char **strPtr;
|
||||
char numBuf[DTD_NAMELEN+1];
|
||||
char *varOffset1;
|
||||
char *varOffset1 = NULL;
|
||||
SDLNumber *numPtr1;
|
||||
SdlOption *enumPtr1;
|
||||
SdlOption attrNum;
|
||||
_DtHelpFontValue fontNum;
|
||||
_DtHelpFontValue fontNum = 0;
|
||||
_DtHelpFontValue *fontPtr1;
|
||||
const SDLAttribute *pAttr = SDLAttributeList;
|
||||
|
||||
|
|
|
@ -2789,7 +2789,7 @@ static void SearchIndex(
|
|||
&indexEntry, &entryLen,indexEntry,entryLen) == 0
|
||||
&& SearchForPattern(indexEntry, srchWord, srchWordLen) == True ) )
|
||||
{
|
||||
_DtHelpGlobSrchHit * hit;
|
||||
_DtHelpGlobSrchHit * hit = NULL;
|
||||
char * * topicIdList;
|
||||
|
||||
HitListAddFound ( curFile, curVol->curIndexXmStr[0],
|
||||
|
|
|
@ -1413,7 +1413,7 @@ static enum _DtGrLoadStatus processTiff(
|
|||
ilFile inFile;
|
||||
ilPipe inPipe;
|
||||
ilFileImage inImage;
|
||||
const ilImageDes *inDes;
|
||||
const ilImageDes *inDes = 0;
|
||||
static ilContext IlContext = NULL;
|
||||
Display *dpy = DisplayOfScreen(screen);
|
||||
Drawable drawable = RootWindowOfScreen(screen);
|
||||
|
@ -2832,7 +2832,7 @@ int _DtGrOpenBuffer(
|
|||
int _DtGrCloseStream(
|
||||
_DtGrStream *stream)
|
||||
{
|
||||
int status;
|
||||
int status = 0;
|
||||
|
||||
if ((stream == NULL) || (stream->type == _DtGrNONE))
|
||||
return(EOF); /* Failure */
|
||||
|
|
|
@ -1677,10 +1677,10 @@ ResolveCell(
|
|||
CellInfo *ret_info)
|
||||
{
|
||||
int i;
|
||||
char *id;
|
||||
char *id = NULL;
|
||||
char *idRefs;
|
||||
char *ptr;
|
||||
char c;
|
||||
char *ptr = NULL;
|
||||
char c = 0;
|
||||
int count;
|
||||
int len;
|
||||
int done;
|
||||
|
@ -1690,7 +1690,7 @@ ResolveCell(
|
|||
_DtCvUnit cellWidth;
|
||||
_DtCvUnit retWidth;
|
||||
_DtCvUnit retHeight;
|
||||
_DtCvUnit saveTop;
|
||||
_DtCvUnit saveTop = 0;
|
||||
CellInfo *thisCell = &ret_info[cell];
|
||||
DataPoint basePt;
|
||||
_DtCvValue reformat = False;
|
||||
|
|
|
@ -397,11 +397,11 @@ _DtCvCheckLineSyntax (
|
|||
int str_len,
|
||||
_DtCvValue skip_hypen_ck)
|
||||
{
|
||||
int myStrLen;
|
||||
int wcFlag;
|
||||
void *pChar;
|
||||
int myStrLen = 0;
|
||||
int wcFlag = 0;
|
||||
void *pChar = NULL;
|
||||
wchar_t nextChar;
|
||||
wchar_t lastChar;
|
||||
wchar_t lastChar = 0;
|
||||
_DtCvValue lstCharMb = False;
|
||||
_DtCvValue nxtCharMb = False;
|
||||
|
||||
|
|
|
@ -154,7 +154,7 @@ SearchForClosestLine (
|
|||
_DtCvSelectData *next)
|
||||
{
|
||||
int i;
|
||||
int maxI;
|
||||
int maxI = 0;
|
||||
_DtCvUnit lineY;
|
||||
_DtCvUnit endX;
|
||||
_DtCvUnit begX;
|
||||
|
|
|
@ -362,7 +362,7 @@ BufCompressedSkip (
|
|||
BufFilePtr f,
|
||||
int bytes)
|
||||
{
|
||||
int c;
|
||||
int c = 0;
|
||||
while (bytes-- && ((c = BufFileGet(f)) != BUFFILEEOF))
|
||||
;
|
||||
return c;
|
||||
|
|
|
@ -1221,7 +1221,7 @@ ilPipeInfo info;
|
|||
ilXWCPtr pXWC;
|
||||
ilXPrivPtr pPriv;
|
||||
ilSrcElementData *pSrcData, srcData;
|
||||
unsigned long bufferSize;
|
||||
unsigned long bufferSize = 0;
|
||||
/*
|
||||
** We need to use the execute fucntion with the ratio parameter.
|
||||
*/
|
||||
|
|
|
@ -440,7 +440,7 @@ ilBool ilCrop (
|
|||
{
|
||||
unsigned int state;
|
||||
ilPipeInfo info;
|
||||
ilCropPrivptr pPriv;
|
||||
ilCropPrivptr pPriv = NULL;
|
||||
ilDstElementData dstdata;
|
||||
ilImageDes imdes;
|
||||
ilImageFormat imformat;
|
||||
|
|
|
@ -260,7 +260,7 @@ unsigned long *pNLines
|
|||
ilDecompG3G4PrivPtr pPriv; /* Pointer to private image data */
|
||||
|
||||
ilPtr dstImageP; /* Pointer to the Destn. Image */
|
||||
ilPtr pRefLine; /* Pointer to the Reference line */
|
||||
ilPtr pRefLine = NULL; /* Pointer to the Reference line */
|
||||
ilError error; /* Returned error */
|
||||
int dstBytesPerRow; /* no.of byte per Row in the dest image */
|
||||
ilBool Is_2DCoding; /* G3 2 D coding is present, if True */
|
||||
|
|
|
@ -1024,7 +1024,7 @@ IL_PRIVATE ilBool _ilConvertRGBToPalette (
|
|||
unsigned short *pPalette;
|
||||
long *pColorTable;
|
||||
ilBool diffusion, chooseColors;
|
||||
int i, shifts[3] = { 0, 0, 0 }, nColors;
|
||||
int i, shifts[3] = { 0, 0, 0 }, nColors = 0;
|
||||
const unsigned short *pMulTable[3] = { NULL, NULL, NULL }; /* dither other than 484 only: pMul? */
|
||||
static ilConvertToPaletteInfo defaultConvert =
|
||||
{IL_DIFFUSION, { 4, 8, 4 }, 8, IL_PALETTE, (ilObject)NULL};
|
||||
|
|
|
@ -323,7 +323,7 @@ IL_PRIVATE ilError _ilMallocImagePixels (
|
|||
)
|
||||
{
|
||||
int plane, nPlanes;
|
||||
int MCUMinus1;
|
||||
int MCUMinus1 = 0;
|
||||
long nBytesToAlloc, nBytesPerRow, allocHeight;
|
||||
ilPtr pPixels;
|
||||
long rowBytesPerPlane [IL_MAX_SAMPLES];
|
||||
|
|
|
@ -120,7 +120,7 @@ iljpgError iljpgDecodeJIF (
|
|||
iljpgDataPtr pData;
|
||||
iljpgBool firstMarker, SOSFound, SOF0Found;
|
||||
iljpgError error;
|
||||
int value, nFrameComps, length;
|
||||
int value, nFrameComps = 0, length;
|
||||
iljpgPtr *ppTable;
|
||||
iljpgCompDataPtr pComp;
|
||||
int i, index;
|
||||
|
|
|
@ -200,7 +200,7 @@ static iljpgError build_huffman_tables (
|
|||
lookup_size,
|
||||
code, mask;
|
||||
tree_node *tree_nodes, /* pointer to pool of tree nodes */
|
||||
*nodep, *leafp, **followp; /* misc aux. tree pointers */
|
||||
*nodep, *leafp = NULL, **followp; /* misc aux. tree pointers */
|
||||
LOOKUP *lookup_symb, *lookup_len; /* pointers to lookup tables */
|
||||
int absize; /* actual number of Huffman-encoded symbols */
|
||||
int *hufvals, *hufcodes, *huflen; /* intermediate tables */
|
||||
|
|
|
@ -784,7 +784,7 @@ ilBool ilScale (
|
|||
{
|
||||
unsigned int state;
|
||||
ilPipeInfo info;
|
||||
ilScalePrivptr pPriv;
|
||||
ilScalePrivptr pPriv = NULL;
|
||||
ilDstElementData dstdata;
|
||||
ilImageDes imdes;
|
||||
ilImageFormat imformat;
|
||||
|
|
|
@ -490,17 +490,17 @@ static unsigned short tagNumbers [] = {
|
|||
#define AI_NTAGS (sizeof(tagNumbers) / sizeof (unsigned short))
|
||||
#define AIL_FATAL_ERROR(_error) {error = (_error); goto AILFatalError; }
|
||||
|
||||
ilFileImageRelation imageType;
|
||||
ilFileImageRelation imageType = mainImage;
|
||||
ilFileTag *tag [AI_NTAGS];
|
||||
ilBool present;
|
||||
ilError error;
|
||||
ilPtr pTagAlloc;
|
||||
unsigned long value;
|
||||
int i, tagIndex, nBits, resolutionUnit, fillOrder;
|
||||
int i, tagIndex, nBits, resolutionUnit, fillOrder = 0;
|
||||
unsigned long group3CompData;
|
||||
unsigned long group4CompData;
|
||||
ilFileTag *pTag;
|
||||
ilYCbCrInfo *pYCbCr; /* null if not YCbCr ; else -> des...YCbCr */
|
||||
ilYCbCrInfo *pYCbCr = NULL; /* null if not YCbCr ; else -> des...YCbCr */
|
||||
|
||||
/* Init/zero des and format in *pFileImage.
|
||||
*/
|
||||
|
|
|
@ -164,9 +164,9 @@ ilFileTag *pTag;
|
|||
int nTags; /* # of tags to read */
|
||||
unsigned short numbers[MAX_NTAGS]; /* tag ids to read */
|
||||
ilFileTag *tags [MAX_NTAGS]; /* ptr to returned data */
|
||||
int stripOffsetsIndex, stripByteCountsIndex, colorMapIndex,
|
||||
QTablesIndex, DCTablesIndex, ACTablesIndex, softwareIndex,
|
||||
restartIndex;
|
||||
int stripOffsetsIndex, stripByteCountsIndex = 0, colorMapIndex,
|
||||
QTablesIndex = 0, DCTablesIndex = 0, ACTablesIndex = 0, softwareIndex = 0,
|
||||
restartIndex = 0;
|
||||
#define ADD_TAG(_index, _tagid) { \
|
||||
_index = nTags++; \
|
||||
numbers[_index] = _tagid; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue