Fix segfault on file not copyright file not found. Only fclose() a file

handle that has been successfully fopen()ed.
This commit is contained in:
Peter Howkins
2012-04-11 15:37:12 +01:00
parent 7e9a7df246
commit 09f0b16cf3

View File

@@ -1272,9 +1272,9 @@ MakeDialog( DialogType dtype )
XmStringCreate(buffer,
XmFONTLIST_DEFAULT_TAG));
}
fclose(fp);
}
fclose(fp);
XtSetArg(argt[i], XmNmessageString, xmstr ); i++;
w = XmCreateInformationDialog(table, "copyright_msg", argt, i);