dtlogin: coverity fixes

This commit is contained in:
Peter Howkins
2018-04-13 00:54:04 +01:00
parent 4e9dc6c50b
commit 13d3e1db50
14 changed files with 52 additions and 60 deletions

View File

@@ -663,7 +663,7 @@ MakeDialog( DialogType dtype )
int width;
FILE *fp, *fopen();
FILE *fp = NULL, *fopen();
char buffer[128];
char *str;
@@ -772,7 +772,9 @@ MakeDialog( DialogType dtype )
}
}
fclose(fp);
if(fp) {
fclose(fp);
}
XtSetArg(argt[i], XmNmessageString, xmstr ); i++;
w = XmCreateInformationDialog(tlev, "copyright_msg", argt, i);