Permalink
Browse files

Fixing segfault when coverage rendering failed.

  • Loading branch information...
constantinius committed Dec 18, 2013
1 parent 8a41daf commit c39c276cdf25c9c95d5e8ca55abb205165b4eae0
Showing with 4 additions and 1 deletion.
  1. +4 −1 mapwcs20.c
View
@@ -2427,7 +2427,10 @@ int msWCSException20(mapObj *map, const char *exceptionCode,
xmlDocSetRootElement(psDoc, psRootNode);
if(EQUAL(exceptionCode, "OperationNotSupported")
if (exceptionCode == NULL) {
/* Do nothing */
}
else if(EQUAL(exceptionCode, "OperationNotSupported")
|| EQUAL(exceptionCode, "OptionNotSupported")) {
status = "501 Not Implemented";
}

0 comments on commit c39c276

Please sign in to comment.