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

dtstyle: Coverity 87244

This commit is contained in:
Peter Howkins 2018-07-03 18:52:02 +01:00
parent a6cdaa8850
commit 8b39102f31

View file

@ -1112,7 +1112,7 @@ CheckFileType( void )
{
char *filename1 = "abcdefghijklmno";
char *filename2 = "abcdefghijklmn";
int fd, fd1;
int fd = -1, fd1 = -1;
char *tmpfile1, *tmpfile2;
/* get the $HOME environment varible and constuct the full file name */
@ -1162,7 +1162,9 @@ CheckFileType( void )
XtFree(tmpfile1);
XtFree(tmpfile2);
close(fd);
close(fd1);
if(fd1 != -1) {
close(fd1);
}
}