mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
dthelp: Resolve uninitialized warnings
This commit is contained in:
parent
0e038e3b52
commit
daf072463a
1 changed files with 4 additions and 4 deletions
|
@ -1451,7 +1451,7 @@ static void MarkUsedStyle(M_WCHAR *level, M_WCHAR *class, M_WCHAR *ssi)
|
||||||
{
|
{
|
||||||
ElementPtr pThis;
|
ElementPtr pThis;
|
||||||
M_WCHAR *rlevel = NULL, *rclass = NULL, *rssi = NULL;
|
M_WCHAR *rlevel = NULL, *rclass = NULL, *rssi = NULL;
|
||||||
LOGICAL *pBeenUsed;
|
LOGICAL *pBeenUsed = NULL;
|
||||||
|
|
||||||
pThis = pTossChain;
|
pThis = pTossChain;
|
||||||
while (pThis)
|
while (pThis)
|
||||||
|
@ -1493,7 +1493,7 @@ while (pThis)
|
||||||
(!rssi || (w_strcmp(rssi, ssi) == 0)) &&
|
(!rssi || (w_strcmp(rssi, ssi) == 0)) &&
|
||||||
(w_strcmp(rclass, class) == 0))
|
(w_strcmp(rclass, class) == 0))
|
||||||
{
|
{
|
||||||
if (*pBeenUsed == FALSE)
|
if (pBeenUsed && *pBeenUsed == FALSE)
|
||||||
{
|
{
|
||||||
nStyles++;
|
nStyles++;
|
||||||
*pBeenUsed = TRUE;
|
*pBeenUsed = TRUE;
|
||||||
|
@ -2232,7 +2232,7 @@ while (pThis)
|
||||||
*/
|
*/
|
||||||
static void MarkUsedTOSS(ElementPtr pRoot)
|
static void MarkUsedTOSS(ElementPtr pRoot)
|
||||||
{
|
{
|
||||||
ElementPtr pParent, pSnb, pItem, pThis;
|
ElementPtr pParent, pSnb = NULL, pItem, pThis;
|
||||||
static char errMess[] =
|
static char errMess[] =
|
||||||
"internal error - unrecognized element type in MarkUsedTOSS";
|
"internal error - unrecognized element type in MarkUsedTOSS";
|
||||||
|
|
||||||
|
@ -3257,7 +3257,7 @@ int zFileSize, length;
|
||||||
unsigned char zTemp[4];
|
unsigned char zTemp[4];
|
||||||
int zFd;
|
int zFd;
|
||||||
char buffer[BUFSIZ];
|
char buffer[BUFSIZ];
|
||||||
FILE *saveOutFile;
|
FILE *saveOutFile = NULL;
|
||||||
char cCount[32];
|
char cCount[32];
|
||||||
static char errMess[] =
|
static char errMess[] =
|
||||||
"internal error - unrecognized element type in EmitSDL";
|
"internal error - unrecognized element type in EmitSDL";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue