diff options
Diffstat (limited to 'libX11')
-rw-r--r-- | libX11/modules/im/ximcp/imLcPrs.c | 6 | ||||
-rw-r--r-- | libX11/modules/om/generic/omGeneric.c | 2 | ||||
-rw-r--r-- | libX11/src/FontNames.c | 2 | ||||
-rw-r--r-- | libX11/src/GetFPath.c | 2 | ||||
-rw-r--r-- | libX11/src/ListExt.c | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/libX11/modules/im/ximcp/imLcPrs.c b/libX11/modules/im/ximcp/imLcPrs.c index 9bb45ff31..60215c706 100644 --- a/libX11/modules/im/ximcp/imLcPrs.c +++ b/libX11/modules/im/ximcp/imLcPrs.c @@ -496,12 +496,12 @@ parseline( token = nexttoken(fp, tokenbuf, &lastch); if (token != KEY && token != STRING) goto error; - if ((filename = TransFileName(im, tokenbuf)) == NULL) - goto error; if (++depth > 100) goto error; + if ((filename = TransFileName(im, tokenbuf)) == NULL) + goto error; infp = _XFopenFile(filename, "r"); - Xfree(filename); + Xfree(filename); if (infp == NULL) goto error; parsestringfile(infp, im, depth); diff --git a/libX11/modules/om/generic/omGeneric.c b/libX11/modules/om/generic/omGeneric.c index a835f00d7..53ca75c04 100644 --- a/libX11/modules/om/generic/omGeneric.c +++ b/libX11/modules/om/generic/omGeneric.c @@ -105,7 +105,7 @@ init_fontdata( if(fd == (FontData) NULL) return False; - memset(fd, 0x00, sizeof(FontData) * font_data_count); + memset(fd, 0x00, sizeof(FontDataRec) * font_data_count); for(i = 0 ; i < font_data_count ; i++) fd[i] = font_data[i]; diff --git a/libX11/src/FontNames.c b/libX11/src/FontNames.c index 6fc6b1272..21dcafea1 100644 --- a/libX11/src/FontNames.c +++ b/libX11/src/FontNames.c @@ -47,7 +47,7 @@ int *actualCount) /* RETURN */ int count = 0; xListFontsReply rep; register xListFontsReq *req; - unsigned long rlen; + unsigned long rlen = 0; LockDisplay(dpy); GetReq(ListFonts, req); diff --git a/libX11/src/GetFPath.c b/libX11/src/GetFPath.c index 62ba01436..8c3f49c95 100644 --- a/libX11/src/GetFPath.c +++ b/libX11/src/GetFPath.c @@ -35,7 +35,7 @@ char **XGetFontPath( int *npaths) /* RETURN */ { xGetFontPathReply rep; - unsigned long nbytes; + unsigned long nbytes = 0; char **flist = NULL; char *ch = NULL; char *chend; diff --git a/libX11/src/ListExt.c b/libX11/src/ListExt.c index 431ae6784..be6b989a3 100644 --- a/libX11/src/ListExt.c +++ b/libX11/src/ListExt.c @@ -42,7 +42,7 @@ char **XListExtensions( register unsigned i; register int length; register xReq *req; - unsigned long rlen; + unsigned long rlen = 0; LockDisplay(dpy); GetEmptyReq (ListExtensions, req); |