diff options
author | jose1711 | 2017-07-28 01:45:34 +0200 |
---|---|---|
committer | jose1711 | 2017-07-28 01:45:34 +0200 |
commit | baea3e8ba3854afe6a6e331a247e63fa8a225a1f (patch) | |
tree | 11b2b9a8b4ab4e569c7ce38bc28f24751e02a406 /ptr_int_cmp.patch | |
parent | b4bf83706d276673291dfd08f33f4f5204a11044 (diff) | |
download | aur-gdal1.tar.gz |
Fix building
Diffstat (limited to 'ptr_int_cmp.patch')
-rw-r--r-- | ptr_int_cmp.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ptr_int_cmp.patch b/ptr_int_cmp.patch new file mode 100644 index 000000000000..12d098687726 --- /dev/null +++ b/ptr_int_cmp.patch @@ -0,0 +1,24 @@ +diff -aur gdal-1.11.5/frmts/wms/gdalwmsdataset.cpp gdal-1.11.5.new/frmts/wms/gdalwmsdataset.cpp +--- gdal-1.11.5/frmts/wms/gdalwmsdataset.cpp 2016-07-01 10:55:06.000000000 +0200 ++++ gdal-1.11.5.new/frmts/wms/gdalwmsdataset.cpp 2017-07-28 01:42:12.689071430 +0200 +@@ -380,7 +380,7 @@ + + if (ret == CE_None) { + const char *pszHttpZeroBlockCodes = CPLGetXMLValue(config, "ZeroBlockHttpCodes", ""); +- if(pszHttpZeroBlockCodes == '\0') { ++ if(*pszHttpZeroBlockCodes == '\0') { + m_http_zeroblock_codes.push_back(204); + } else { + char **kv = CSLTokenizeString2(pszHttpZeroBlockCodes,",",CSLT_HONOURSTRINGS); +diff -aur gdal-1.11.5/ogr/ogrsf_frmts/vfk/vfkfeature.cpp gdal-1.11.5.new/ogr/ogrsf_frmts/vfk/vfkfeature.cpp +--- gdal-1.11.5/ogr/ogrsf_frmts/vfk/vfkfeature.cpp 2016-07-01 10:55:03.000000000 +0200 ++++ gdal-1.11.5.new/ogr/ogrsf_frmts/vfk/vfkfeature.cpp 2017-07-28 01:41:49.675883164 +0200 +@@ -245,7 +245,7 @@ + for (poChar = pszLine; *poChar != '\0' && *poChar != ';'; poChar++) + /* skip data block name */ + ; +- if (poChar == '\0') ++ if (*poChar == '\0') + return FALSE; /* nothing to read */ + + poChar++; /* skip ';' after data block name*/ |