diff --git a/cde/lib/DtHelp/FormatMan.c b/cde/lib/DtHelp/FormatMan.c index 87762d78c..7c023f669 100644 --- a/cde/lib/DtHelp/FormatMan.c +++ b/cde/lib/DtHelp/FormatMan.c @@ -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; diff --git a/cde/lib/DtHelp/FormatSDL.c b/cde/lib/DtHelp/FormatSDL.c index 54bddcbda..4927e629a 100644 --- a/cde/lib/DtHelp/FormatSDL.c +++ b/cde/lib/DtHelp/FormatSDL.c @@ -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; diff --git a/cde/lib/DtHelp/GlobSearch.c b/cde/lib/DtHelp/GlobSearch.c index 0a7664110..976a5d425 100644 --- a/cde/lib/DtHelp/GlobSearch.c +++ b/cde/lib/DtHelp/GlobSearch.c @@ -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], diff --git a/cde/lib/DtHelp/Graphics.c b/cde/lib/DtHelp/Graphics.c index dae2174df..f9b77b9d1 100644 --- a/cde/lib/DtHelp/Graphics.c +++ b/cde/lib/DtHelp/Graphics.c @@ -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 */ diff --git a/cde/lib/DtHelp/Layout.c b/cde/lib/DtHelp/Layout.c index 8f81f8271..9aadb7cd9 100644 --- a/cde/lib/DtHelp/Layout.c +++ b/cde/lib/DtHelp/Layout.c @@ -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; diff --git a/cde/lib/DtHelp/LayoutUtil.c b/cde/lib/DtHelp/LayoutUtil.c index cf3c32ddd..e1508cad8 100644 --- a/cde/lib/DtHelp/LayoutUtil.c +++ b/cde/lib/DtHelp/LayoutUtil.c @@ -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; diff --git a/cde/lib/DtHelp/Selection.c b/cde/lib/DtHelp/Selection.c index 9d8714e32..1ea52dcc9 100644 --- a/cde/lib/DtHelp/Selection.c +++ b/cde/lib/DtHelp/Selection.c @@ -154,7 +154,7 @@ SearchForClosestLine ( _DtCvSelectData *next) { int i; - int maxI; + int maxI = 0; _DtCvUnit lineY; _DtCvUnit endX; _DtCvUnit begX; diff --git a/cde/lib/DtHelp/decompress.c b/cde/lib/DtHelp/decompress.c index 0f08b00cd..0bb795040 100644 --- a/cde/lib/DtHelp/decompress.c +++ b/cde/lib/DtHelp/decompress.c @@ -362,7 +362,7 @@ BufCompressedSkip ( BufFilePtr f, int bytes) { - int c; + int c = 0; while (bytes-- && ((c = BufFileGet(f)) != BUFFILEEOF)) ; return c; diff --git a/cde/lib/DtHelp/il/ilX.c b/cde/lib/DtHelp/il/ilX.c index 367ed3af4..f271bc7bf 100644 --- a/cde/lib/DtHelp/il/ilX.c +++ b/cde/lib/DtHelp/il/ilX.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. */ diff --git a/cde/lib/DtHelp/il/ilcrop.c b/cde/lib/DtHelp/il/ilcrop.c index 52677559b..5f5e50251 100644 --- a/cde/lib/DtHelp/il/ilcrop.c +++ b/cde/lib/DtHelp/il/ilcrop.c @@ -440,7 +440,7 @@ ilBool ilCrop ( { unsigned int state; ilPipeInfo info; -ilCropPrivptr pPriv; +ilCropPrivptr pPriv = NULL; ilDstElementData dstdata; ilImageDes imdes; ilImageFormat imformat; diff --git a/cde/lib/DtHelp/il/ildecompg3.c b/cde/lib/DtHelp/il/ildecompg3.c index 4caa0733b..618c48f09 100644 --- a/cde/lib/DtHelp/il/ildecompg3.c +++ b/cde/lib/DtHelp/il/ildecompg3.c @@ -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 */ diff --git a/cde/lib/DtHelp/il/ildither.c b/cde/lib/DtHelp/il/ildither.c index d2b0f55be..659b4bb1a 100644 --- a/cde/lib/DtHelp/il/ildither.c +++ b/cde/lib/DtHelp/il/ildither.c @@ -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}; diff --git a/cde/lib/DtHelp/il/ilimage.c b/cde/lib/DtHelp/il/ilimage.c index 494ed4a4b..84a817fa8 100644 --- a/cde/lib/DtHelp/il/ilimage.c +++ b/cde/lib/DtHelp/il/ilimage.c @@ -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]; diff --git a/cde/lib/DtHelp/il/iljpgdecodejif.c b/cde/lib/DtHelp/il/iljpgdecodejif.c index 5c326f8c4..de642c304 100644 --- a/cde/lib/DtHelp/il/iljpgdecodejif.c +++ b/cde/lib/DtHelp/il/iljpgdecodejif.c @@ -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; diff --git a/cde/lib/DtHelp/il/iljpgdehuff.c b/cde/lib/DtHelp/il/iljpgdehuff.c index f0e588cd9..fb8d4f059 100644 --- a/cde/lib/DtHelp/il/iljpgdehuff.c +++ b/cde/lib/DtHelp/il/iljpgdehuff.c @@ -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 */ diff --git a/cde/lib/DtHelp/il/ilscale.c b/cde/lib/DtHelp/il/ilscale.c index 846d850de..aa34e7c50 100644 --- a/cde/lib/DtHelp/il/ilscale.c +++ b/cde/lib/DtHelp/il/ilscale.c @@ -784,7 +784,7 @@ ilBool ilScale ( { unsigned int state; ilPipeInfo info; -ilScalePrivptr pPriv; +ilScalePrivptr pPriv = NULL; ilDstElementData dstdata; ilImageDes imdes; ilImageFormat imformat; diff --git a/cde/lib/DtHelp/il/iltiff.c b/cde/lib/DtHelp/il/iltiff.c index 26b6ca0f6..7260efc3f 100644 --- a/cde/lib/DtHelp/il/iltiff.c +++ b/cde/lib/DtHelp/il/iltiff.c @@ -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. */ diff --git a/cde/lib/DtHelp/il/iltiffread.c b/cde/lib/DtHelp/il/iltiffread.c index 2dff1b907..7bd67f23d 100644 --- a/cde/lib/DtHelp/il/iltiffread.c +++ b/cde/lib/DtHelp/il/iltiffread.c @@ -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; \