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;
|
||||
char *arg0 = argv[0];
|
||||
char * msg;
|
||||
char * msg = "";
|
||||
char * variable = argv[1];
|
||||
XtCallbackStatus callbackStatus;
|
||||
XrmValue fval, tval;
|
||||
|
@ -2476,18 +2476,18 @@ invokeXDrawFunction(
|
|||
char * functionName = argv[0];
|
||||
Display * display;
|
||||
Window drawable;
|
||||
Window destination;
|
||||
int srcX, srcY;
|
||||
int destX, destY;
|
||||
unsigned int width, height;
|
||||
Window destination = NULL;
|
||||
int srcX = 0, srcY = 0;
|
||||
int destX = 0, destY = 0;
|
||||
unsigned int width = 0, height = 0;
|
||||
char *s;
|
||||
char *sp;
|
||||
int i;
|
||||
int mode, parse;
|
||||
int mode, parse = 0;
|
||||
int text = FALSE;
|
||||
int (*func)();
|
||||
int (*func)() = NULL;
|
||||
int argtype = 0;
|
||||
int polymode;
|
||||
int polymode = 0;
|
||||
int coordmode;
|
||||
GC gc = NULL;
|
||||
int p[MAXDRAWARGS];
|
||||
|
|
|
@ -279,7 +279,7 @@ DtkshCvtBooleanToString(
|
|||
XrmValuePtr toval )
|
||||
{
|
||||
char * errmsg;
|
||||
Boolean booleanState;
|
||||
Boolean booleanState = False;
|
||||
|
||||
if (fval->size != sizeof(int) && fval->size != sizeof(short) &&
|
||||
fval->size != sizeof(char))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue