opnsense-ports/graphics/Coin/files/patch-hg-11469.diff
Franco Fichtner d9c0666d6d */*: sync with upstream
Taken from: HardenedBSD
2018-06-18 08:28:10 +02:00

16 lines
769 B
Diff

Fix compile, passing NULL isn't an integer for initializing a bool.
From upstream revision 11469.
diff -r a9e748858e58 -r d77c7249db51 src/profiler/SoProfilerVisualizeKit.cpp
--- src/profiler/SoProfilerVisualizeKit.cpp Mon Feb 16 13:09:45 2015 +0000
+++ src/profiler/SoProfilerVisualizeKit.cpp Thu Feb 19 22:30:51 2015 +0100
@@ -150,7 +150,7 @@
SO_KIT_ADD_FIELD(separatorsWithGLCaches, (NULL));
this->separatorsWithGLCaches.setNum(0);
- this->separatorsWithGLCaches.setDefault(NULL);
+ this->separatorsWithGLCaches.setDefault(FALSE);
PRIVATE(this)->cacheSensor.reset(new SoFieldSensor(cacheSensorCB, this));
PRIVATE(this)->cacheSensor->attach(&this->separatorsWithGLCaches);
PRIVATE(this)->rootSensor.reset(new SoFieldSensor(rootChangedCB, this));