Commit b50019a8 authored by multrus's avatar multrus
Browse files

avoid crash in case no ROM data is available

parent 4a1b55a1
Loading
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2030,10 +2030,12 @@ void print_mem( ROM_Size_Lookup_Table Const_Data_PROM_Table[] )
            {
                fprintf( stdout, "Error: Cannot retrieve or calculate Table ROM size of (%s)!\n", Const_Data_PROM_Table[i].file_spec );
            }

            else
            {
                fprintf( stdout, "Table ROM (const data) size (%s): %d %s\n", Const_Data_PROM_Table[i].file_spec, Const_Data_PROM_Table[i].Get_Const_Data_Size_Func() >> Stat_Cnt_Size, Count_Unit[Stat_Cnt_Size] );
            }
        }
    }
    else
    {
        fprintf( stdout, "Program ROM size: not available\n" );