mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
dtksh: Resolve uninitialized warningsc
This commit is contained in:
parent
bbaaf942be
commit
efa29a21e0
2 changed files with 9 additions and 9 deletions
|
@ -1317,7 +1317,7 @@ do_XtHasCallbacks(
|
||||||
{
|
{
|
||||||
wtab_t *w;
|
wtab_t *w;
|
||||||
char *arg0 = argv[0];
|
char *arg0 = argv[0];
|
||||||
char * msg;
|
char * msg = "";
|
||||||
char * variable = argv[1];
|
char * variable = argv[1];
|
||||||
XtCallbackStatus callbackStatus;
|
XtCallbackStatus callbackStatus;
|
||||||
XrmValue fval, tval;
|
XrmValue fval, tval;
|
||||||
|
@ -2476,18 +2476,18 @@ invokeXDrawFunction(
|
||||||
char * functionName = argv[0];
|
char * functionName = argv[0];
|
||||||
Display * display;
|
Display * display;
|
||||||
Window drawable;
|
Window drawable;
|
||||||
Window destination;
|
Window destination = NULL;
|
||||||
int srcX, srcY;
|
int srcX = 0, srcY = 0;
|
||||||
int destX, destY;
|
int destX = 0, destY = 0;
|
||||||
unsigned int width, height;
|
unsigned int width = 0, height = 0;
|
||||||
char *s;
|
char *s;
|
||||||
char *sp;
|
char *sp;
|
||||||
int i;
|
int i;
|
||||||
int mode, parse;
|
int mode, parse = 0;
|
||||||
int text = FALSE;
|
int text = FALSE;
|
||||||
int (*func)();
|
int (*func)() = NULL;
|
||||||
int argtype = 0;
|
int argtype = 0;
|
||||||
int polymode;
|
int polymode = 0;
|
||||||
int coordmode;
|
int coordmode;
|
||||||
GC gc = NULL;
|
GC gc = NULL;
|
||||||
int p[MAXDRAWARGS];
|
int p[MAXDRAWARGS];
|
||||||
|
|
|
@ -279,7 +279,7 @@ DtkshCvtBooleanToString(
|
||||||
XrmValuePtr toval )
|
XrmValuePtr toval )
|
||||||
{
|
{
|
||||||
char * errmsg;
|
char * errmsg;
|
||||||
Boolean booleanState;
|
Boolean booleanState = False;
|
||||||
|
|
||||||
if (fval->size != sizeof(int) && fval->size != sizeof(short) &&
|
if (fval->size != sizeof(int) && fval->size != sizeof(short) &&
|
||||||
fval->size != sizeof(char))
|
fval->size != sizeof(char))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue