Skip to content

Commit

Permalink
Improve previous commit when msIO_setHeader() is called before any ca…
Browse files Browse the repository at this point in the history
…ll to msIO_Initialize()
  • Loading branch information
rouault committed Oct 2, 2014
1 parent fba3bec commit e262f0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mapio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e262f0e

Please sign in to comment.