Skip to content

Commit

Permalink
mapscript/php/image.c: add parentheses for clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Mar 21, 2021
1 parent 30cdee8 commit f00408d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapscript/php/image.c
Expand Up @@ -282,7 +282,7 @@ PHP_METHOD(imageObj, saveImage)
php_map = MAPSCRIPT_OBJ_P(php_map_object, zmap);

if(filename_len > 0) {
if ((status = msSaveImage((zmap ? php_map->map:NULL), php_image->image, filename) != MS_SUCCESS)) {
if (((status = msSaveImage((zmap ? php_map->map:NULL), php_image->image, filename)) != MS_SUCCESS)) {
mapscript_throw_mapserver_exception("Failed writing image to %s" TSRMLS_CC, filename);
return;
}
Expand Down

0 comments on commit f00408d

Please sign in to comment.