summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarti Maria <marti.maria@littlecms.com>2022-01-07 16:29:38 +0100
committerMarti Maria <marti.maria@littlecms.com>2022-01-07 16:29:38 +0100
commitdc04b14ed89519675754e73101e9993b2dd440e9 (patch)
treecbee448e41b17f9c70b9a06a5aff09dbb77f08c5
parenta98c03cc8dd3e57e4c86a1d067e3dce803cdfbd9 (diff)
downloadlcms2-dc04b14ed89519675754e73101e9993b2dd440e9.tar.gz
Minor cosmetic fixes
- Left typos - meson build by #292 - Fix valgrind warning on writing uninitialized memory
-rw-r--r--meson.build7
-rw-r--r--src/cmstypes.c4
-rw-r--r--src/cmswtpnt.c2
-rw-r--r--testbed/testcms2.c2
4 files changed, 9 insertions, 6 deletions
diff --git a/meson.build b/meson.build
index 5d9b45f..7dbe2a0 100644
--- a/meson.build
+++ b/meson.build
@@ -1,9 +1,9 @@
project('Little-CMS', 'c',
- version: '2.12',
+ version: '2.13',
meson_version: '>=0.48.0',
)
-library_version = '2.0.12'
+library_version = '2.0.13'
cc = meson.get_compiler('c')
@@ -59,13 +59,12 @@ endif
if cc.has_function_attribute('visibility:hidden')
cargs +='-DHAVE_FUNC_ATTRIBUTE_VISIBILITY=1'
-elif cc.get_id() == 'msvc'
- cargs += '-DCMS_DLL_BUILD=1'
endif
if host_machine.system() == 'windows'
win = import('windows')
lcms2_srcs += win.compile_resources('Projects/VC2019/lcms2.rc')
+ cargs += '-DCMS_DLL_BUILD=1'
endif
liblcms2_lib = library('lcms2', lcms2_srcs,
diff --git a/src/cmstypes.c b/src/cmstypes.c
index 475858d..9ff2b11 100644
--- a/src/cmstypes.c
+++ b/src/cmstypes.c
@@ -3227,6 +3227,10 @@ cmsBool Type_NamedColor_Write(struct _cms_typehandler_struct* self, cmsIOHANDLER
cmsUInt16Number Colorant[cmsMAXCHANNELS];
char Root[cmsMAX_PATH];
+ memset(Root, 0, sizeof(Root));
+ memset(PCS, 0, sizeof(PCS));
+ memset(Colorant, 0, sizeof(Colorant));
+
if (!cmsNamedColorInfo(NamedColorList, i, Root, NULL, NULL, PCS, Colorant)) return 0;
Root[32] = 0;
if (!io ->Write(io, 32 , Root)) return FALSE;
diff --git a/src/cmswtpnt.c b/src/cmswtpnt.c
index ddd60b0..8cfacf2 100644
--- a/src/cmswtpnt.c
+++ b/src/cmswtpnt.c
@@ -267,7 +267,7 @@ cmsBool _cmsAdaptMatrixToD50(cmsMAT3* r, const cmsCIExyY* SourceWhitePt)
// aspects of the RGB to XYZ process, and assuming that the gamma correction
// has transitive property in the transformation chain.
//
-// the algoritm:
+// the algorithm:
//
// - First I build the absolute conversion matrix using
// primaries in XYZ. This matrix is next inverted
diff --git a/testbed/testcms2.c b/testbed/testcms2.c
index 3820909..1bd0dd8 100644
--- a/testbed/testcms2.c
+++ b/testbed/testcms2.c
@@ -8279,7 +8279,7 @@ double distance(const cmsUInt16Number* a, const cmsUInt16Number* b)
/**
* In 2.12, a report suggest that the built-in sRGB has roundtrip errors that makes color to move
-* when roundripping again and again
+* when roundtripping again and again
*/
static
int Check_sRGB_Rountrips(void)