Bug in msSaveSymbolSet

Sean Gillies sgillies at FRII.COM
Mon Jan 16 15:11:54 EST 2006


On Jan 16, 2006, at 8:42 AM, Albert Rovira wrote:

> Hi all,
>
> I found a litte bug in function msSaveSymbolSet. It don't close the  
> file
> stream, so data about symbols are lost.
>
> int msSaveSymbolSet(symbolSetObj *symbolset, const char *filename) {
>     FILE *stream;
>     int retval;
>     if (!filename || strlen(filename) == 0) {
>         msSetError(MS_SYMERR, "Invalid filename.", "msSaveSymbolSet 
> ()");
>         return MS_FAILURE;
>     }
>     stream = fopen(filename, "w");
>     retval = msSaveSymbolSetStream(symbolset, stream);
>     return retval;
> }

Good catch, Albert. It's fixed for 4.8 and 4.9.

---
Sean Gillies
sgillies at frii dot com
http://zcologia.com/news



More information about the mapserver-users mailing list