Skip to content

Commit

Permalink
fix segfault in wms error image when no error set
Browse files Browse the repository at this point in the history
shown in #4266, although unrelated to the underlying issue
  • Loading branch information
tbonfort committed Apr 6, 2012
1 parent 45e9f54 commit 412a11b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions maperror.c
Expand Up @@ -403,6 +403,9 @@ void msWriteErrorImage(mapObj *map, char *filename, int blank) {
colorObj labelcolor, labeloutlinecolor, imagecolor, *imagecolorptr=NULL;
ls.color = &labelcolor;
ls.outlinecolor = &labeloutlinecolor;
if(!errormsg) {
errormsg = msStrdup("No error found sorry. This is likely a bug");
}

if (map) {
if( map->width > 0 && map->height > 0 )
Expand Down

0 comments on commit 412a11b

Please sign in to comment.