libdtterm: Resolve uninitialized warnings

This commit is contained in:
Peter Howkins
2021-12-21 01:11:29 +00:00
committed by Jon Trulson
parent 108c2fab2c
commit fa4fe1fb47
6 changed files with 13 additions and 8 deletions

View File

@@ -573,8 +573,8 @@ _DtTermPrimBufferInsertWc
short *returnLength /* count of characters in overflow buffer */
)
{
short widthInc; /* incremental change in line width */
short lengthInc; /* incremental change in line length */
short widthInc = 0; /* incremental change in line width */
short lengthInc = 0; /* incremental change in line length */
short widthInsert; /* column width of chars inserted */
short localCol;
TermLine line;

View File

@@ -68,8 +68,8 @@ _DtTermPrimRefreshTextWc(Widget w, short startColumn, short startRow,
short chunkStartColumn;
short chunkWidth;
short chunkLength;
short thisStartColumn;
short thisEndColumn;
short thisStartColumn = 0;
short thisEndColumn = 0;
enhValues enhancements;
int i1;
int lineNum;

View File

@@ -282,7 +282,7 @@ _DtTermPrimSubprocExec(Widget w,
DtTermPrimitiveWidget tw = (DtTermPrimitiveWidget) w;
static char *defaultCmd = (char *) 0;
int i;
int pty;
int pty = -1;
pid_t pid;
char *c;
int err;