File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ int map_length(const var_p_t var_p) {
9090
9191var_p_t map_get (var_p_t base , const char * name ) {
9292 var_p_t result ;
93- if (base -> type == V_MAP ) {
93+ if (base != NULL && base -> type == V_MAP ) {
9494 result = hashmap_get (base , name );
9595 } else {
9696 result = NULL ;
Original file line number Diff line number Diff line change @@ -37,17 +37,17 @@ void reset_image_cache() {
3737}
3838
3939ImageBuffer::ImageBuffer () :
40- _bid(0 ),
4140 _filename(nullptr ),
4241 _image(nullptr ),
42+ _bid(0 ),
4343 _width(0 ),
4444 _height(0 ) {
4545}
4646
4747ImageBuffer::ImageBuffer (ImageBuffer &o) :
48- _bid(o._bid),
4948 _filename(o._filename),
5049 _image(o._image),
50+ _bid(o._bid),
5151 _width(o._width),
5252 _height(o._height) {
5353}
Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ struct ImageBuffer {
1717 ImageBuffer (ImageBuffer & imageBuffer );
1818 virtual ~ImageBuffer ();
1919
20- unsigned _bid ;
2120 char * _filename ;
2221 unsigned char * _image ;
22+ unsigned _bid ;
2323 int _width ;
2424 int _height ;
2525};
You can’t perform that action at this time.
0 commit comments