1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 19:52:20 +00:00

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, 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);