ports/x11/gnustep/displaycalibrator/patches/patch-AppController_m

12 lines
316 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
--- AppController.m.orig Sat Oct 19 16:25:11 2013
+++ AppController.m Sat Oct 19 16:26:08 2013
@@ -29,7 +29,7 @@
sscanf(buffer,"%f %f %f",&r,&g,&b);
/* printf("%f %f %f\n",r,g,b); */
- if (f=fopen(XCONF,"rw")) {
+ if ((f=fopen(XCONF,"rw")) != NULL) {
fclose(f);
[button setEnabled:YES];
}