Fix potential null pointer dereference

This commit is contained in:
Rene Kita committed 2022-04-19 10:08:54 +02:00
1 parent 1308f5efe5
commit d33a522936
1 file changed
+3
+3
View File
@@ -84,6 +84,9 @@ draw(FB_IMAGE * img, Imlib_Image image)
imlib_context_set_image(image);
data = imlib_image_get_data_for_reading_only();
if (data == NULL)
return;
for (j = 0; j < img->height; j++) {
offset = img->width * j;
for (i = 0; i < img->width; i++) {