1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

dtpdmd: Resolve some coverity warnings

This commit is contained in:
Peter Howkins 2018-03-30 23:48:00 +01:00
parent bcccf559ce
commit edd928caf5
2 changed files with 4 additions and 2 deletions

View file

@ -162,6 +162,8 @@ static int generic_error_handler( edpy, eevent )
g.xerrno = eevent->error_code; g.xerrno = eevent->error_code;
g.xerrreq = eevent->request_code; g.xerrreq = eevent->request_code;
g.xerrmin = eevent->minor_code; g.xerrmin = eevent->minor_code;
return 0; /* XSetErrorHandler handlers return values are ignored */
} }
/****************************************************************************** /******************************************************************************

View file

@ -475,7 +475,7 @@ void mgr_launch_pdm( XpPdmServiceRec *rec )
/* /*
* Set XAUTHORITY env var if needed. * Set XAUTHORITY env var if needed.
*/ */
if ((rec->cookie_cnt) && (rec->auth_filename) && (rec->auth_file)) { if ((rec->cookie_cnt) && (rec->auth_file)) {
envstr = Xmalloc( strlen(rec->auth_filename) + 12 ); envstr = Xmalloc( strlen(rec->auth_filename) + 12 );
sprintf( envstr, "XAUTHORITY=%s", rec->auth_filename ); sprintf( envstr, "XAUTHORITY=%s", rec->auth_filename );
putenv( envstr ); putenv( envstr );
@ -513,7 +513,7 @@ void mgr_launch_pdm( XpPdmServiceRec *rec )
*/ */
void mgr_fetch_pdm( XpPdmServiceRec *rec ) void mgr_fetch_pdm( XpPdmServiceRec *rec )
{ {
char tstr[1024], *tptr1, *tptr2, *tptr3; char tstr[1024], *tptr1 = NULL, *tptr2, *tptr3;
int firstTime; int firstTime;
long now; long now;
Display *tdpy; Display *tdpy;