evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / le / lesstif / c-render_table_crash.patch
blob1699dbe190843b4d0866b6fde5a9121d61dbba09
1 --- lesstif2-0.95.0.orig/lib/Xm-2.1/RenderTable.c
2 +++ lesstif2-0.95.0/lib/Xm-2.1/RenderTable.c
3 @@ -465,7 +465,7 @@
4 DEBUGOUT(_LtDebug(__FILE__, w, "_XmRenderTableFinaliseTag(%s)\n", tag));
5 #if 1
6 /* Experimental start */
7 - if (r->dpy == 0)
8 + if (r->dpy == 0 && w)
9 r->dpy = XtDisplay(w);
10 /* Experimental end */
11 #endif