Permalink
Browse files

Improve previous commit when msIO_setHeader() is called before any ca…

…ll to msIO_Initialize()
  • Loading branch information...
rouault committed Oct 2, 2014
1 parent fba3bec commit e262f0e77f50a3af8685edf5837d44468a2a47ae
Showing with 2 additions and 0 deletions.
  1. +2 −0 mapio.c
View
@@ -213,6 +213,8 @@ void msIO_setHeader (const char *header, const char* value, ...)
}
} else {
#endif // MOD_WMS_ENABLED
+ if( !is_msIO_initialized )
+ msIO_Initialize();
if( is_msIO_header_enabled ) {
msIO_fprintf(stdout,"%s: ",header);
msIO_vfprintf(stdout,value,args);

0 comments on commit e262f0e

Please sign in to comment.