Permalink
Browse files

Fix ISO C90'ism that causes MSVC compilation error

  • Loading branch information...
1 parent 8a32f71 commit a7ac6f750368e6cf8e14c92f1ebe94fbfadb2fd3 @rouault rouault committed Oct 5, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 mapresample.c
View
@@ -1254,12 +1254,13 @@ int msResampleGDALToMap( mapObj *map, layerObj *layer, imageObj *image,
if(layer->mask) {
int ret, maskLayerIdx;
+ layerObj *maskLayer;
maskLayerIdx = msGetLayerIndex(map,layer->mask);
if(maskLayerIdx == -1) {
msSetError(MS_MISCERR, "Invalid mask layer specified", "msResampleGDALToMap()");
return -1;
}
- layerObj *maskLayer = GET_LAYER(map, maskLayerIdx);
+ maskLayer = GET_LAYER(map, maskLayerIdx);
mask_rb = msSmallCalloc(1,sizeof(rasterBufferObj));
ret = MS_IMAGE_RENDERER(maskLayer->maskimage)->getRasterBufferHandle(maskLayer->maskimage,mask_rb);
if(ret != MS_SUCCESS) {

0 comments on commit a7ac6f7

Please sign in to comment.