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:
@@ -1272,9 +1272,9 @@ MakeDialog( DialogType dtype )
|
|||||||
XmStringCreate(buffer,
|
XmStringCreate(buffer,
|
||||||
XmFONTLIST_DEFAULT_TAG));
|
XmFONTLIST_DEFAULT_TAG));
|
||||||
}
|
}
|
||||||
|
fclose(fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
fclose(fp);
|
|
||||||
XtSetArg(argt[i], XmNmessageString, xmstr ); i++;
|
XtSetArg(argt[i], XmNmessageString, xmstr ); i++;
|
||||||
|
|
||||||
w = XmCreateInformationDialog(table, "copyright_msg", argt, i);
|
w = XmCreateInformationDialog(table, "copyright_msg", argt, i);
|
||||||
|
|||||||
Reference in New Issue
Block a user