diff options
Diffstat (limited to 'atari/plot/plotter.c')
-rwxr-xr-x | atari/plot/plotter.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/atari/plot/plotter.c b/atari/plot/plotter.c index 8359215c1..06632d3ee 100755 --- a/atari/plot/plotter.c +++ b/atari/plot/plotter.c @@ -325,10 +325,12 @@ FONT_PLOTTER new_font_plotter( int vdihandle, char * name, unsigned long flags, if( fplotter == NULL ) {
*error = 0-ERR_NO_MEM;
return( NULL );
- }
+ } + memset( fplotter, 0, sizeof(FONT_PLOTTER));
fplotter->vdi_handle = vdihandle;
- fplotter->name = name;
- fplotter->flags |= flags;
+ fplotter->name = name; + fplotter->flags = 0;
+ fplotter->flags |= flags; for( i = 0; ; i++) {
if( font_driver_table[i].name == NULL ) {
res = 0-ERR_PLOTTER_NOT_AVAILABLE;
|