Permalink
Browse files

zero is a valid array index

  • Loading branch information...
1 parent a52c440 commit 9719935b25cc998d6f4da3f1f93559a461985647 @unicolet unicolet committed Feb 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 mapscript/swiginc/outputformat.i
@@ -94,7 +94,7 @@
%newobject getOptionAt;
char* getOptionAt(int i) {
- if( i > 0 && i < self->numformatoptions ) {
+ if( i >= 0 && i < self->numformatoptions ) {
return self->formatoptions[i];
}
return NULL;

0 comments on commit 9719935

Please sign in to comment.