Skip to content

Commit

Permalink
Fix return values
Browse files Browse the repository at this point in the history
  • Loading branch information
geographika committed Feb 18, 2024
1 parent dcb57de commit f3610f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mapdraw.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ imageObj *msDrawMap(mapObj *map, int querymap) {
if (*filename == '\0') {
msSetError(MS_IOERR, "Invalid SLD filename: \"%s\".",
"msLayerGetFeatureStyle()", lp->styleitem);
return MS_FAILURE;
return (NULL);
}

msSLDApplyFromFile(map, lp, filename);
Expand Down Expand Up @@ -1132,8 +1132,8 @@ int msDrawVectorLayer(mapObj *map, layerObj *layer, imageObj *image) {

/* build item list. STYLEITEM javascript needs the shape attributes */
if (layer->styleitem &&
(strncasecmp(layer->styleitem, "javascript://", 13) == 0) ||
(strncasecmp(layer->styleitem, "sld://", 6) == 0)) {
((strncasecmp(layer->styleitem, "javascript://", 13) == 0) ||
(strncasecmp(layer->styleitem, "sld://", 6) == 0))) {
status = msLayerWhichItems(layer, MS_TRUE, NULL);
} else {
status = msLayerWhichItems(layer, MS_FALSE, NULL);
Expand Down

0 comments on commit f3610f2

Please sign in to comment.